Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #5649 Add preload options to autoload TomSelect (Lustmored)
This PR was merged into the 4.x branch. Discussion ---------- Add preload options to autoload TomSelect My users have raised a concern that using autocomplete fields is not intuitive as with default EA settings they have to open the field and write something to actually see any results and found that confusing (especially when there are just a few results to choose from). I have found that TomSelect has an option to preload results on focus (`preload: 'focus'`). When combined with `maxOptions: null` it enchances UX by loading first page of results on focus. Like this: ![ezgif-3-bfe613d4ea](https://user-images.githubusercontent.com/2358046/220604033-4367d1cb-f7c7-4ef5-8e48-e60036547ea1.gif) EasyAdmin is supporting paging results out of the box and with this change users with not many options available will see them quickly without the need to type anything, while users with thousands of options will see the first page and can easily search from there. In my (and my users) opinion this change enhances UX, so I believe it might be useful as the default for `autocomplete` fields. I can also hide this easily behind some flag, if you'd prefer to keep current settings as the default of course 😸 Commits ------- 52c6a07 Add preload options to autoload TomSelect
- Loading branch information