Closed
Description
Hello!
I want to have single-option selectize with ability to clear selected element. It seems remove_button plugin must be fine for it, but in the start of plugin there are next line:
if (this.settings.mode === 'single') return;
If I comment this line, plugin still not working with maxItems 1, only settings mode multi are supported, so I added
plugins: ['remove_button'],
maxItems: 1,
mode: 'multi'
lines in selectize initialization settings and now everything works well.
Which troubles I can get with this code, should mode option be undocumented in usage.md and is this is are the best way to make remove_button plugin work together with maxItems 1?