Topic: Select initialization in ajax loaded popup

Max Menezes priority asked 1 year ago


Expected behavior The select should get initialized properly as it normally does on a page.

Actual behavior The select does not get initialized

Resources (screenshots, code snippets etc.)


Kamila Pieńkowska staff answered 1 year ago


This is not a bug. If you load select with Ajax you can't initialize it with data attributes because this initialization happens on the page load. If a component is added dynamically it is not present in the initial HTML. You have to init it with JS after it is added. That way it will work fine. We have examples of JS init for every component.



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Opened

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 6.2.0
  • Device: Laptop
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: No