You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I use Turbolinks in my app, so I need to destroy Choices instances everytime before Turbolinks caches the page. But when I destroy Choices instance on select with optgroups in it, these optgroups disappear in default select after destroying Choices.
I have workaround for this, in case someone else runs into this problem too. It replaces innerHTML of default select completely (but correctly, with optgroups):
Describe the bug
I use Turbolinks in my app, so I need to destroy Choices instances everytime before Turbolinks caches the page. But when I destroy Choices instance on select with optgroups in it, these optgroups disappear in default select after destroying Choices.
JSFiddle here: https://jsfiddle.net/rjqzsum6/
I have workaround for this, in case someone else runs into this problem too. It replaces innerHTML of default select completely (but correctly, with optgroups):
But it would be really nice not to use this 'hotfix'
The text was updated successfully, but these errors were encountered: