selectize.js
selectize.js copied to clipboard
Fixed incorrect highlighting of options that were activated, removed and then re-added in "multiple" mode
This PR fixes the following issues:
- https://github.com/selectize/selectize.js/issues/1212
- https://github.com/selectize/selectize.js/issues/1216
The incorrect behavior can be seen in the following screen-capture:

Also, here is a codepen: https://codepen.io/anon/pen/ERENZB .
After this fix, the re-added options are not highlighted anymore.
I rebased the code on the current master and resolved the conflicts.
Stale pull request message
@risadams May want to consider merging this?