- The autocomplete will now update if any of the
optionelements inside of it change, including the empty / placeholder element. Additionally, if theselectorinputelement'sdisabledattribute changes, the autocomplete instance will update accordingly. This makes Autocomplete work perfectly inside of a LiveComponent.
-
Add
assets/srcto.gitattributesto exclude them from the installation -
Fix minCharacters option default value handling when using a falsy value like 0.
-
Fix TypeScript types
-
Add a new
routeparameter toAsEntityAutocompleteField, which allows to choose another route for Ajax calls. -
Fix minCharacters option default value handling when using a falsy value like 0.
-
Fix TypeScript types
-
Add a way to detect if a field is an "autocomplete" field in form themes - #608
- [BC BREAK]: The path to
routes.phpchanged and you should update your route import accordingly:
# config/routes/ux_autocomplete.yaml
ux_autocomplete:
- resource: '@AutocompleteBundle/Resources/routes.php'
+ resource: '@AutocompleteBundle/config/routes.php'
prefix: '/autocomplete'- Add support for
tom-selectversion2.2.2and made this the minimum-supported version. - Added support for the
preloadTomSelect option. - Fix don't add WHERE IN criteria without params (#561).
- Fix issue where
max_resultswas not passed as a Stimulus value (#538). - Add all possible stylesheets for tom-select to the autoimport to choose from.
-
Automatic pagination support added: if the query would return more results than your limit, when the user scrolls to the bottom of the options, it will make a second Ajax call to load more.
-
Added
max_resultsoption to limit the number of results returned by the Ajax endpoint - #478. -
Support added for setting the required minimum search query length (defaults to 3) (#492)
-
Fix support for more complex ids, like UUIDs - #494.
-
Fixed bug where sometimes an error could occur in the Ajax call related to the label - #520.
- Component added!