Topic: Re-initiating MaterialSelect created new wrapper
Hi there
there seem to be a bug with the <select>
not reappearing when you destroy it (using the destroy: true
parameters. Is that intentional?
Also, if I then re-initiate it, the select wrapper gets duplicated. I have setup a snippet where you can see both of the above.
For the purpose of the sample, i have the select-wrapper
a border and padding.
as you can see - after you destroy & re-initiate, the wrappers get recreated again and again.
https://mdbootstrap.com/snippets/jquery/moshe/2181793
This small bug should probably fixed.
But the select not appearing after
destroy
- is that meant to be?
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- User: Pro
- Premium support: No
- Technology: MDB jQuery
- MDB Version: 4.19.0
- Device: PC
- Browser: Firefox
- OS: Win10
- Provided sample code: No
- Provided link: Yes
Grzegorz Bujański staff commented 5 years ago
Hi, this will be fixed in the next release.
Kneidels pro commented 5 years ago
Thanks. What about the
destroy
- should that make the<select>
appear again in its default HTML format?Grzegorz Bujański staff commented 4 years ago
No. This method only destroys select. If you want to show it again, you must initialize it again.