I have been using the Floating labels demonstration from Bootstrap 4.3.
If the browser already has credentials saved for autocompletion, the formatting of the <input>
element gets disrupted.
The animation (as well as the size and margin properties) of floating labels only kick in when the window/document is in focus.
How can I prevent these issues?
I have tried using the CSS
property :-webkit-autofill
, as well as focusing on the first input
field, but the problem persists.
Preview: