Class 'active' not added, when autofill is used
See original GitHub issue<form action="" class="col s12" method="post" accept-charset="utf-8">
<div class="row">
<div class="input-field col s12" style="margin-bottom: 10px;">
<i class="mdi-action-account-circle prefix"></i>
<input type="text" name="identity" value="" class="validate" id="icon_prefix" required="required" style="margin-top: 0.5rem;" />
<label for="icon_prefix" style="margin-left: 3.5rem;" class="active">Номер телефона или e-mail</label>
</div>
<div class="input-field col s12">
<i class="mdi-action-lock-outline prefix"></i>
<input type="password" name="password" value="" class="validate" id="icon_password" required="required" style="margin-top: 0.5rem;" />
<label for="icon_password" style="margin-left: 3.5rem;" class="active">Пароль</label>
</div>
<div class="input-field col s6">
<button class="btn cyan waves-effect waves-light right" type="submit" name="action"><i class="mdi-action-lock-open"></i> Войти</button>
</div>
</div>
</form>
Issue Analytics
- State:
- Created 8 years ago
- Comments:13 (2 by maintainers)
Top Results From Across the Web
autofill - CSS: Cascading Style Sheets - MDN Web Docs
The :autofill CSS pseudo-class matches when an <input> element has its value autofilled by the browser. The class stops matching if the user ......
Read more >jQuery UI Autocomplete: set active item - Stack Overflow
Save this question. Show activity on this post. I am trying to micmic teh behaviour of a simple HTML SELECT element with jQuery...
Read more >autofill - CSS-Tricks
The :auto-fill pseudo-class in CSS allows us to style <input> elements that contain content auto-filled by the browser.
Read more >Detecting autofilled fields in Javascript | by Tommy Brunn
This is done by listening for a change event and adding the class is-filled to the field, which then applies the appropriate zooming...
Read more >How To Add Active Class To Current Element - W3Schools
className += " active"; }); }. Try it Yourself ». If you do not have an active class set on the button element...
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 Free
Top 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
This problem seems to have been fixed in recent versions of Chrome and Firefox
Fixed by adding: