Select initialization in ajax loaded popup


Topic: Select initialization in ajax loaded popup

Max Menezes pro premium priority asked 2 years 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.)


kpienkowska staff answered 2 years 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

Open

Specification of the issue
  • User: Pro
  • 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
Tags