rvera / image-picker

Image Picker is a simple jQuery plugin that transforms a select element into a more user friendly graphical interface.
http://rvera.github.com/image-picker
Other
907 stars 216 forks source link

destroy() is undefined! #118

Closed ghost closed 5 years ago

ghost commented 6 years ago

I tried: $("#myselect").data('picker').destroy() but property destroy is undefined

rvera commented 6 years ago

Thanks, will take a look

Humni commented 5 years ago

I believe this is working, I've tested this on the demo with no major issues. The only complication that I came into was when there were multiple selectors on the page, you can't destroy them all at once, you have to do it one by one. Am closing this issue for now, but if you have any other information or context to provide the bug report feel free to comment it.