Skip to content

Releases: orchidjs/tom-select

1.7.2

21 May 14:43
Compare
Choose a tag to compare

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

18 May 21:54
Compare
Choose a tag to compare

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

14 May 01:49
Compare
Choose a tag to compare
  • 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

10 May 21:11
Compare
Choose a tag to compare

Upgrade to sifter.js 0.7.2 making an empty searchField setting display all options - #78

v1.6.2

08 May 19:51
Compare
Choose a tag to compare

Fixed sortField regression

1.6.1

29 Apr 22:30
Compare
Choose a tag to compare
  • Upgrade to sifter.js v1.7.1
  • fix item creation when option_create template is null and mode = 'single'

1.6.0

24 Apr 03:12
Compare
Choose a tag to compare

1.6.0 depends on our new fork of sifter and introduces search field weights.

v1.5.0

21 Apr 03:34
Compare
Choose a tag to compare
  • 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

25 Mar 21:47
Compare
Choose a tag to compare

Fix conflict with Array.prototype

1.4.2

25 Mar 19:06
Compare
Choose a tag to compare

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