Topic: What does data-mdb-input-init do?
sven.oostenbrink pro premium priority asked 10 months ago
What does data-mdb-input-init="" do? I cannot find any documentation about what it does, but from the examples, I have to add it in the div surrounding elements, but when accidentally added around elements, I get the following very "clear" javascript error:
Uncaught TypeError: t is null _toggleDefaultDatePlaceholder input.js:174 _getLabelData input.js:135 init input.js:78 Ps input.js:55 EI free.js:225 EI free.js:225 ih init.js:30 nb init.js:53 nb init.js:53 nb init.js:86 mdb.pro.umd.js:49 mdb.umd.js:1 mdb.umd.js:1
I guess it has some importance but it would be very helpful if this is documented somewhere
Kamila Pieńkowska staff answered 10 months ago
It is used to initiate form-outlines
so it should be added only to them.
It makes label of the input goes to te top left corner when its focused or filled.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: MDB5 7.1.0
- Device: Desktop
- Browser: Firefox, Chrome
- OS: Linux (Ubuntu 23.10)
- Provided sample code: No
- Provided link: No