Skip to content

Releases: Choices-js/Choices

v11.2.3

30 Apr 00:37

Choose a tag to compare

Changes

🐛 Bug Fixes

  • Fix search input width unexpectedly collapses for select-one backing elements #1399 @Xon (#1401)

Contributors

@Xon

v11.2.2

13 Apr 17:01

Choose a tag to compare

Changes

🐛 Bug Fixes

  • Fix maxItemText would cause the dropdown to display if choices.js is created with that many items selected (Fix #1299) @Xon (#1393)
  • Fix non-fixed width font support when computing width for input element @terminalchai (#1384)
  • Fix setChoices() could cause the add choice notice to incorrectly render and replaceChoices/clearSearchFlag/replaceItems arguments could be ignored @Xon (#1389)
  • Fix opening the dropdown could cause the entire page to scroll @Xon (#1388)

🔧 Maintenance

Contributors

@Xon, @dependabot, @dependabot[bot] and @terminalchai

v11.2.1

10 Mar 12:01

Choose a tag to compare

Changes

🔧 Maintenance

  • Fix npm deployment process
  • Update dev dependencies & github workflows for node v24+ @Xon (#1386)

Contributors

@Xon and @jshjohnson

v11.2.0

05 Jan 02:55

Choose a tag to compare

Changes

🚀 Features

  • Improve UX on the select dropdown @zoglo (#1361)
  • Add searchRenderSelectedChoices configuration option to control whether selected choices appear in search results for select-multiple inputs @samuelhwilliams (#1358)
  • Add searchDisabledChoices configuration option to allow disabled choices to appear in search results @thewatts (#1357)
  • Add CSS custom properties support (+ dark mode for the intro page) @zoglo (#1335)
  • Soften constraints on remove buttons @gael-ian (#1338)
  • Add support for required html attribute @zoglo (#1332)
  • Add additional SCSS variables @lera-sh (#1304)

🐛 Bug Fixes

  • Fix searchEnabled being disabled for select-multiple did not work @Xon (#1366)
  • Fix data-label-description from source html was not treated as trusted @Xon (#1365)
  • Fix kmp search not returning results as expected @Xon (#1364)
  • Fix selected choice was not reliably highlighted when opening the dropdown @zoglo (#1339)
  • Define [aria-selected] for selectable choices per WAI-ARIA 1.2 spec, and avoid triple state with aria-selected @pablobm (#1330)
  • Fix appendGroupInSearch option was non-functional @Xon (#1324)
  • When resolving the remove item/label/icon, add a 3rd argument item argument. Update default remove item label to use this (Fixes #1296) @Xon (#1323)
  • Fix searchResultLimit could not be set to -1 when renderChoiceLimit was set @Xon (#1322)
  • Fix dropdown would stick closed when a search loses focus @leofeyer (#1308)

🔧 Maintenance

Contributors

@JordanDDisch, @Xon, @dependabot, @dependabot[bot], @gael-ian, @leofeyer, @lera-sh, @marcpicaud, @pablobm, @samuelhwilliams, @thewatts and @zoglo

v11.1.0

14 Mar 05:13

Choose a tag to compare

Changes

🚀 Features

  • Support <option> label attribute @Xon (#1289)
  • add KMP search algorithm (gated by build flag) @midzer (#1277)

🐛 Bug Fixes

Contributors

@Xon, @midzer, @mlinnetz and Mike Linnetz

v11.0.6

27 Feb 13:15

Choose a tag to compare

Changes

🚨 Breaking changes

  • Changes to setChoices & clearChoices adjust how the selection and new choices combine when using replaceChoices: true is used to better match v10.2.0 and v11.0.3 behavior.
    • To remove duplication, consider using the configuration optionduplicateItemsAllowed: false, or use the setChoices's new 6th argument replaceItems:true

🐛 Bug Fixes

  • Fix setChoices & clearChoices related regressions @Xon (#1278 #1283)
  • Revert "Do not preventDefault on item to support dragging" #1266 @Xon (#1282)

Chore

  • Add e2e test for dropdown behavior on item mouse down/click
  • Add e2e test for serveral setChoices/clearChoices actions

Contributors

@Xon

v11.0.5

26 Feb 13:09

Choose a tag to compare

Changes

🐛 Bug Fixes

  • Fix setChoices regression in v11.0.4, where replaceChoices argument would deselect selected items. Fixes #1278 @Xon (#1279)

Contributors

@Xon

v11.0.4

22 Feb 22:25

Choose a tag to compare

Changes

🚀 Features

🐛 Bug Fixes

  • Fix v11 setChoice performance regression @Xon (#1276)
  • Fix renderSelectedChoices option when all choices are selected @Xon (#1274)
  • Fix v11 regression for disabled placeholder option handling @Xon (#1273)
  • Fix v11 regression where clearChoices (and setChoices with replaceChoices:true) did not remove selected items @Xon (#1272)
  • Fix v11 regression where duplicateItemsAllowed option did not work with select-one/select-multiple @Xon (#1271)
  • Fix: Reached maximum item limit notice is not cleared after removing selections @ticktackk (#1270)
  • Fix: Disabled options are not visible (#1257) @ticktackk (#1269)
  • Fix: Clear button reverses items order @ticktackk (#1265)
  • Fix tab => direction keys handling with disabled search @zoglo (#1260)
  • Improve cjs compatibility by removing pinned "module" type in package.json @roma-formio (#1254)

🔧 Maintenance

Contributors

@Xon, @dependabot, @joeworkman, @roma-formio, @ticktackk and @zoglo

v11.0.3

27 Dec 18:53

Choose a tag to compare

Changes

🐛 Bug Fixes

  • Fix tab => direction keys handling in single-select mode @Xon (#1242)
  • Fix shift key handling when navigating with tab @zoglo (#1245)
  • Fix HTML comments were copied from backing <option> and were rendered as text @Xon (#1244)
  • Fix multiple-select mode "No choices to choose from" is sometimes displayed even if there are choices @Xon (#1243)
  • Fix Notice for max item limit is removed permanently if you keep typing @Xon (#1241)
  • Fix search was not stopped when leaving focus with esc key @zoglo (#1240)
  • Fix tab and esc keys handling @zoglo (#1239)
  • Fix input text - method setValue didn't work @Xon (#1211)

🔧 Maintenance

Contributors

@DarrenSG, @Xon, @dependabot, @dependabot[bot] and @zoglo

v11.0.2

07 Sep 01:13

Choose a tag to compare

Changes

🚀 Features

  • duplicateItemsAllowed option is now respected by setChoices() method @Xon (#1198)
  • Pass getClassNames as the 3rd argument to callbackOnCreateTemplates callback @Xon (#1190)

🐛 Bug Fixes

  • Fix various opt-group handling issues @Xon (#1200)
  • Fix clearChoices() would remove items, and clear the search flag @Xon (#1196)
  • Fix "no choices to choose from"/"no results found" notice did not reliably trigger @Xon (#1192 #1197)
  • Fix regression of UnhighlightItem event not firing (#1173) @Xon (#1194)
  • Fix regression where webpack doesn't permit importing scss/css @tagliala (#1193)

🔧 Maintenance

  • Add autocomplete example to end-to-end tests @Xon (#1199)
  • Add e2e tests for "no choices" behavior to match v10 @Xon (#1186)

Contributors

@Xon and @tagliala