Releases: orchidjs/tom-select
Releases · orchidjs/tom-select
1.7.2
JavaScript
- #97 Placeholder showed after focus out of selectbox when clear button clicked
- #98 Removing all items from tom-select mode=single doesn't update underlying select
- add scroll() method, add behavior option to scrollToOption()
- revert portions of 1bf49e5 to fix duplicate item deletion
- #88 Dropdown doesn't scroll to active option
- don't change activeOption when hideSelected = false for #88
- #93 Select box smooth scrolls to current item when opening
- close() dropdown on load to make sure it is hidden
CSS
- #95 make spinner scss vars overwritable
- #91 bootstrap 5 styles doesn't apply to input-group
- #92 fix placement of clear-button with single mode caret
Other
- Added robots.txt and sitemap.xml to documentation site
- #94 Updated docs for clearOptions()
- More tests
1.7.1
CSS
- #90 Fix form-control-sm and form-control-lg
- #91 Fix input-group, input-group-sm, and input-group-lg for Bootstrap 4 and 5
- #85 Hidden input shouldn't make select area taller on narrow screens
- #86 disabled select should be grayed out
- Prevent overlapping caret
JavaScript
- #88 setActiveOption() should be after open() to ensure scrolling
- #87 clearCache(), clearCache('option'), updateOption(), and removeOption() should remove option from DOM
- Accurately keep track of active option in refreshOptions() with duplicates
- Add rendered() to consolidate duplicate code for accessing option and item DOM nodes
- UpdateOption() replaces option node without calling refreshOptions()
- Move dropdown scrolling to scrollToOption()
Docs
v1.7.0
- Added virtual_scroll plugin
- Dropdown toggles when clicking on control instead of just remaining open
- getOption() respects duplicates
- getElementWithValue() no longer needed
- Option select on click instead of mousedown
- Removed deprecated onSearchChange and onOptionHover
- Better test coverage
v1.6.3
v1.6.2
1.6.1
1.6.0
1.6.0 depends on our new fork of sifter and introduces search field weights.
v1.5.0
- Added field searching "field-name:query" example at https://tom-select.js.org/examples/contacts/
- Build cjs
- Bug fixes
- prevent extra onchange events
- remove inline css to fix CSP issues
- fix option.selected vs getAttribute('selected') issue
- don't overwrite background color css
- fix item creation when option_create template is null
- should not create item on tab unless selectOnTab=true
- fix setup when optgroup_header template is null
1.4.3
1.4.2
Multiple bugfixes
- fix getAdjacent() regression
- trigger one onchange event for clear button
- updateOriginalInput() fixed to maintain order of items
- Array.from() instead of spread operator
- fix degraded performance in registerOption()
- fix addItems() when last item is duplicate
- add missing :hover for create option
- flex-fill for control input
- handle space separated events for input autogrow events