Topic: input labels overlap input value on page load
BMarkus pro answered 7 years ago
<input type="text" class="form-control validate" value=" ">This isn't the best practise, but it works ;) Kind regards, Markus
rentrent pro commented 7 years ago
:), thanks, but this solution might cause errors in validationBartłomiej Malanowski staff pro premium answered 7 years ago
nevda pro answered 6 years ago
Bartłomiej Malanowski staff pro premium commented 6 years ago
We still don't have a fix for that - issue is still in our TODO listDaniel Andreoli answered 4 years ago
Is there a fix for this already?
Marcin Luczak staff commented 4 years ago
Hi,
This is an issue with some browsers try to autofill your commonly used inputs on page load without triggering any event . If you are aware that some of your inputs are broken due to the autocomplete of the browser you could try to manually trigger('change')
on them after the page loads od add active
class, which should change the label position if the input value is not empty.
Keep coding,
Marcin
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: No
- Technology: MDB jQuery
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No