Floating labels for Password inputs not triggering on Chrome auto-fill
See original GitHub issueWhen using the following input code, floating labels aren’t triggering on auto-fill for the Password inputs (they’re working fine for text inputs) :
<div class="login__form">
<div>
<mdl-textfield floating-label [(ngModel)]="username" [label]="'Username'" name="__ac_name"></mdl-textfield>
</div>
<div>
<mdl-textfield floating-label [(ngModel)]="password" [label]="'Password'" type="password" name="__ac_password"></mdl-textfield>
</div>
</div>
Screenshot:
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
label not floating when the browser using password manager ...
i have a login form. The password label not floating when the browser using password manager auto completion. Here's the preview. Thanks (input...
Read more >Labels not aligning correct when using autofill in chrome
When I'm entering text in an input field the floating labels are acting weird when using autofill in chrome compared to typing in...
Read more >CSS floating labels - Chrome autofill : r/web_design - Reddit
Hi All,. Been struggling on an issue for a few days now and kept putting it to the back of the pile but...
Read more >352527 - Autofill should trigger a change event on inputs
Now navigate to the page and you'll see that the username field has the correct label floating above but the password field does...
Read more >Detecting Chrome autofill on page load - Medium
The floating labels are “floated” when input is focused or when there's a value in ... Well, not so much when it comes...
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 workaround works for me:
I used Material design Bootstrap (MDB) below code is working for me
$(document).ready(function () { setTimeout(function () { var $Input = $(‘input:-webkit-autofill’); $Input.next(“label”).addClass(‘active’); }, 200); });