question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

focus animation not working in the form

See original GitHub issue

image

Automate.cshtml

`<div class="row clearfix" ng-controller="app.views.automate as vm">

<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">

    <div class="card">

        <div class="header">

            <h2>

                Automate

            </h2>

        </div>

        <div class="body">





            <div id="wizard-step-container">

                <ul class="nav nav-pills nav-justified">

                    <li ng-repeat="step in vm.steps" ng-class="{'active':step.step == vm.currentStep}"><a ng-click="vm.gotoStep(step.step)" href="">{{step.step}}. {{step.name}}</a></li>

                </ul>

            </div>



            <div id="wizard-content-container">

                <ng-include src="vm.getStepTemplate()"></ng-include>

            </div>



            <div id="wizard-navigation-container">

                <div class="pull-right">

                    <span class="btn-group">

                        <button ng-disabled="vm.currentStep <= 1" class="btn btn-default" name="previous" type="button" ng-click="vm.gotoStep(vm.currentStep - 1)"><i class="fa fa-arrow-left"></i> Previous step</button>

                        <button ng-disabled="vm.currentStep >= vm.steps.length" class="btn btn-primary" name="next" type="button" ng-click="vm.gotoStep(vm.currentStep + 1)">Next step <i class="fa fa-arrow-right"></i></button>

                    </span>

                    <button ng-disabled="vm.currentStep != vm.steps.length" class="btn btn-success" name="next" type="button" ng-click="vm.save()"> <i class="fa fa-floppy-o"></i> Save</button>

                </div>

            </div>

        </div>

    </div>

</div>
</div>`

Step3.cshtml

`<div class="step3">

<form id="frm_create_user" name="userCreateForm" novalidate>

    <div class="row clearfix" style="margin-top:10px;">

        <div class="col-sm-12">

            <div class="form-group form-float">

                <div class="form-line">

                    <input id="center" type="text" name="CenterName" ng-model="vm.location['abq'].center" required maxlength="32" minlength="2" class="validate form-control">

                    <label for="center" class="form-label">ABQ</label>

                </div>

            </div>

        </div>

    </div>

</form>
</div>`

I found that the jquery “On focus event” not fired up but i just copied the code from creatUser.cshtml but there it is working fine.

Abp package version - 3.7.0 base framework: .Net Framework

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:29 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
realLiangshiweicommented, Aug 18, 2018

This has nothing to do with abp

0reactions
Gardens18commented, Aug 27, 2018

Found the solution:

Since the “form content” is loaded into the wizard as partial view ( seperate .cshtml), the default focus event declared in the admin.js will not be affected. So I tried “On” event , it works fine now. I wonder that they have already done it for “label” but not for the “input”. Check the image below for reference.

1

Read more comments on GitHub >

github_iconTop Results From Across the Web

css focus animation is not working correctly?
I had just built this input field with simple animation. This code works like in this way that when you I click on...
Read more >
CSS animation on input focus - YouTube
In this CSS animation tutorial, I explain how to use the CSS background-image property to add an outline to your input fields.
Read more >
focus - CSS: Cascading Style Sheets - MDN Web Docs - Mozilla
The :focus CSS pseudo-class represents an element (such as a form input) that has received focus. It is generally triggered when the user ......
Read more >
An Interactive Guide to CSS Transitions
This comprehensive guide shows how to use CSS transitions! A back-to-basics look at the fundamental building blocks we need to create ...
Read more >
CSS :focus Selector
The :focus selector is used to select the element that has focus. Tip: The :focus selector is allowed on elements that accept keyboard...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found