miket-dev / multiselect

Pure js multiselect implementation
MIT License
38 stars 30 forks source link

Does not refresh when original select box gets new attributes #3

Closed harrington101 closed 4 years ago

harrington101 commented 5 years ago

I have a multi-select box where the options available change as the page changes. Is it possible to update the options in this multi-select as the options in the original change?

miket-dev commented 4 years ago

Quite an old issue (and I am really sorry for that), but eventually I managed to work on it. Use destroy method to destroy and recreate multiselect again. Refer to readme and demo for details. That's quite cheaper than adding a watcher for option set changes.