Releases: Choices-js/Choices
Releases · Choices-js/Choices
v11.2.3
v11.2.2
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
- Bump vite from 7.3.1 to 7.3.2 @dependabot (#1395)
- Bump serialize-javascript from 7.0.4 to 7.0.5 @dependabot (#1394)
- Bump picomatch @dependabot (#1392)
- Bump flatted from 3.3.1 to 3.4.2 @dependabot (#1390)
Contributors
@Xon, @dependabot, @dependabot[bot] and @terminalchai
v11.2.1
v11.2.0
Changes
🚀 Features
- Improve UX on the select dropdown @zoglo (#1361)
- Add
searchRenderSelectedChoicesconfiguration option to control whether selected choices appear in search results for select-multiple inputs @samuelhwilliams (#1358) - Add
searchDisabledChoicesconfiguration option to allow disabled choices to appear in search results @thewatts (#1357) - Add CSS
custom propertiessupport (+ dark mode for the intro page) @zoglo (#1335) - Soften constraints on remove buttons @gael-ian (#1338)
- Add support for
requiredhtml attribute @zoglo (#1332) - Add additional SCSS variables @lera-sh (#1304)
🐛 Bug Fixes
- Fix
searchEnabledbeing disabled forselect-multipledid 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
appendGroupInSearchoption was non-functional @Xon (#1324) - When resolving the remove item/label/icon, add a 3rd argument
itemargument. Update default remove item label to use this (Fixes #1296) @Xon (#1323) - Fix
searchResultLimitcould not be set to -1 whenrenderChoiceLimitwas set @Xon (#1322) - Fix dropdown would stick closed when a search loses focus @leofeyer (#1308)
🔧 Maintenance
- Bump js-yaml @dependabot (#1363)
- Bump playwright and @playwright/test @dependabot (#1356)
- Bump tar-fs from 2.1.3 to 2.1.4 @dependabot (#1349)
- Match the previous height of the choices docs @zoglo (#1341)
- docs: update versioned URLs to current major @marcpicaud (#1336)
- Add additional SCSS variables @lera-sh (#1304)
- Bump form-data from 4.0.0 to 4.0.4 @dependabot (#1327)
- Bump esbuild, @vitest/coverage-v8 and vitest @dependabot (#1321)
- Bump vite from 5.4.14 to 5.4.19 @dependabot (#1320)
- Bump tar-fs from 2.1.1 to 2.1.3 @dependabot (#1311)
- Bump undici from 5.28.5 to 5.29.0 @dependabot (#1305)
- updated documentation for the callbackOnCreateTemplate @JordanDDisch (#1318)
Contributors
@JordanDDisch, @Xon, @dependabot, @dependabot[bot], @gael-ian, @leofeyer, @lera-sh, @marcpicaud, @pablobm, @samuelhwilliams, @thewatts and @zoglo
v11.1.0
v11.0.6
Changes
🚨 Breaking changes
- Changes to
setChoices&clearChoicesadjust how the selection and new choices combine when usingreplaceChoices: trueis used to better matchv10.2.0andv11.0.3behavior.- To remove duplication, consider using the configuration option
duplicateItemsAllowed: false, or use thesetChoices's new 6th argumentreplaceItems:true
- To remove duplication, consider using the configuration option
🐛 Bug Fixes
- Fix
setChoices&clearChoicesrelated 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/clearChoicesactions
Contributors
v11.0.5
v11.0.4
Changes
🚀 Features
- Do not preventDefault on item to support dragging @joeworkman (#1266)
🐛 Bug Fixes
- Fix v11
setChoiceperformance regression @Xon (#1276) - Fix
renderSelectedChoicesoption when all choices are selected @Xon (#1274) - Fix v11 regression for disabled placeholder option handling @Xon (#1273)
- Fix v11 regression where
clearChoices(andsetChoiceswithreplaceChoices:true) did not remove selected items @Xon (#1272) - Fix v11 regression where
duplicateItemsAllowedoption did not work withselect-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
- Bump vitest and @vitest/coverage-v8 @dependabot (#1264)
- Bump undici from 5.28.4 to 5.28.5 @dependabot (#1255)
- Bump vite from 5.4.6 to 5.4.14 @dependabot (#1256)
Contributors
@Xon, @dependabot, @joeworkman, @roma-formio, @ticktackk and @zoglo
v11.0.3
Changes
🐛 Bug Fixes
- Fix
tab=> direction keys handling in single-select mode @Xon (#1242) - Fix
shiftkey handling when navigating withtab@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
esckey @zoglo (#1240) - Fix
tabandesckeys handling @zoglo (#1239) - Fix input text - method setValue didn't work @Xon (#1211)
🔧 Maintenance
- Update v11 event payload in README.md @DarrenSG (#1226)
- Chore: Replace enum KeyCodeMap with const object @Xon (#1210)
- Bump rollup from 4.20.0 to 4.22.4 @dependabot (#1208)
- Bump vite from 5.3.5 to 5.4.6 @dependabot (#1205)
Contributors
@DarrenSG, @Xon, @dependabot, @dependabot[bot] and @zoglo
v11.0.2
Changes
🚀 Features
duplicateItemsAllowedoption is now respected bysetChoices()method @Xon (#1198)- Pass
getClassNamesas the 3rd argument tocallbackOnCreateTemplatescallback @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
UnhighlightItemevent 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)