Skip to content

Commit fb1cb7e

Browse files
committed
fix compatibility with contao-components/choices >= 11.2.0.1 / Contao 5.7.x
1 parent 686dec4 commit fb1cb7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Resources/public/js/backend.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,12 @@
117117
const options = Array.from(select.options).map(option => option.textContent);
118118
return !options.includes(value);
119119
},
120-
shouldSort: false,
120+
shouldSort: true,
121121
duplicateItemsAllowed: false,
122122
allowHTML: false,
123123
removeItemButton: true,
124124
renderSelectedChoices: false,
125-
searchEnabled: select.options.length > 7,
125+
searchEnabled: true,
126126
classNames: {
127127
containerOuter: ['choices', ...Array.from(select.classList)],
128128
flippedState: '',

0 commit comments

Comments
 (0)