KeHa priority asked 1 year ago


Expected behavior Hey, I have a template with select's that are hidden in the html. With Javascript we make a copy and add it to the dialog.

When this happens it seems the select is not correctly init. The select dont open.

When i now init it via Javascript with mdb.Select.getOrCreateInstance(select) It created a douple select.

Resources (screenshots, code snippets etc.) enter image description here


Kamila Pieńkowska staff answered 1 year ago


When you have select that is not visible on the initial page load don't use auto init (class .select in HTML) and init select with JS after it is shown using new mdb.Select(select)



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: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 6.2.0
  • Device: ThinkCentre
  • Browser: Firefox
  • OS: Win10
  • Provided sample code: No
  • Provided link: No