focus animation not working in the form
See original GitHub issueAutomate.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:
- Created 5 years ago
- Comments:29 (14 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This has nothing to do with abp
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.