0.12.0
Additions / Updates
- Released on NPM as selectize (#60, #604)
- Added support for using
dataAttrto hydrate a text input element:<input type="text" data-data="[{...},{...}]">(#155, #231, #522) - Added
splitOnsetting that allows pasted text to be broken up into items (#425, @jhash) - Added
removeOptionGroup,clearOptionGroupsmethods (#669) - Added
closeAfterSelectsetting (#344) - Added
$itemargument toitem_removeevent (#585) - Added
focus,blurevents (plusonFocus,onBlurcallbacks) - Added ability to pass callback to
createItem(for use with async option creation) - Updated sifter.js to 0.4.0
- Text sorting is now locale-aware.
- Added Polish diacritics: łŁ
Bugfixes
- Don't allow tabbing/focus to selectize control that is disabled (#583, #307)
- Don't propagate ESC keypress when closing menu – for when selectize is used in modals (#672)
- Set option labels on original, hidden
<select>element (#512) - Improved focus, blur handling (particularly IE)
- Disabled validity API ("required" prop) on Android. Support for it is too erratic currently.
- Allow tabbing to next control when control is full (#629)
- Render functions can now return strings that start w/newline characters (#645)
- Fixed grunt module building on Windows (#453)
Breaking Changes
- Made
addOption,addOptionGroupadd implicit$orderproperty (if not already set). The property used to only be added to options populated from the DOM (#640, #381, #499, #198) - Removed
optgroupOrdersetting. Constraining the option group render order is now achieved by settinglockOptgroupOrder: true. To customize the order, set the$orderproperty on each item in youroptgroupsarray