Topic: mdb-select keeps nesting select-wrapper after dynamically option insertion
Jorge Nuñez Malledo free asked 3 years ago
Hope you are doing ok in Poland.
When dynamically adding option via jquery script, mdb-select keeps nesting select-wrapper's divs outside original select, in an exponential way. Eventually, the session crashes. In the snipped below, session crashes after the 10th option insertion. By the time, the number of nested select-wrapper's div is... 512!
Am I doing something wrong?
Thank you and take care
Resources (screenshots, code snippets etc.)
OK and thank you for your clarification. In the interim I will stop using mdb-select (unfortunately) and will use normal select which I found works perfectly OK.
I look forward very much to the fix.
I have come across exactly the same problem with mdb-select nesting select wrappers exponentially. I am not using any listeners and cannot figure out how to overcome or workaround this problem.
According to a support response of 9 months ago on topic "Material Select update/destroy options for a specific mdb-select", just appending or removing will automatically recreate the the select but in my case a new nested select wrapper is created and I can't figure out any way to stop this happening. BTW I have tried the method suggested in the response to the topic "Material Select update/destroy options for a specific mdb-select" with no luck.
Could you please advise.
Thanks and regards
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- User: Free
- Premium support: No
- Technology: MDB jQuery
- MDB Version: 4.15.0
- Device: Lenovo T480
- Browser: Mozilla Firefox 74.0.1 (64-bit)
- OS: Windows 10
- Provided sample code: No
- Provided link: Yes