Topic: Populating input value programmatically not working

smachesney free asked 3 years ago


Hi, I load the input value programmatically and use:

document.querySelectorAll('.form-outline').forEach((formOutline) => { new mdb.Input(formOutline).update(); });

To update the label with the correct width and active class. However the label text is still behind the border and now I notice two "form-notch" divs: enter image description here form-notch


Michał Duszak staff answered 3 years ago


Hello, loading values programatically doesn't cause this error in my case. Could you reproduce this error in our snippets?



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: 3.2.0
  • Device: Desktop
  • Browser: Chrome
  • OS: Windoes
  • Provided sample code: No
  • Provided link: No
Tags