How to populate asynchronously options to initialized materi


Topic: How to populate asynchronously options to initialized material select?

Sanches asked 12 months ago

Hi! I'm having difficulty with material select (page is freezing while initializing material selects) in MDB PRO 4.11 while initializing dozen of material selects in my page. Needless to say that some selects have about 10 thousand OPTIONS in it. Is there any way to initialize material selects without page not freezing while loading options asynchronously?

$(document).ready(function() {
     $('.mdb-select').materialSelect();
});

Sanches commented 12 months ago

Shame on developers! From 4.7.8 version you have bugy material select. I want to populate select dynamically but I've figured out that after materialSelect({destroy: true}); it destroys layout because it's removing layout parent besides div.select-wrapper. WHAT A SHAME! And people are paying for them!


Mateusz Łubianka staff commented 12 months ago

Hi @Sanches,

We have a task on our list regarding freezing select when it has a large number of options. Our team will fix this as soon as possible. I apologize for all the inconvenience.

Best,


Please insert min. 20 characters.
Status

Open

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: jQuery
  • MDB Version: 4.11.0
  • Device: Desktop
  • Browser: Firefox
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No