F
Filament6mo ago
dyo

trigger getSearchResultsUsing in form select when user paste the text from clipboard

How can I do that, if user paste the data without keyboard or using right click with cursor or using paste button in mobile?
4 Replies
dyo
dyo6mo ago
can anyone help me?
DrByte
DrByte6mo ago
Good question. While pasting works fine in a "text" search field, with a "select" combobox, for both single and multiple, on mobile it's not automatically doing the search when a value is pasted ... unless you press space or edit something via keyboard. I'm not sure if that's a livewire issue or a ChoicesJs issue.
dyo
dyo6mo ago
yeah.. how can i have a trigger on value change in select to trigger the search?
DrByte
DrByte6mo ago
Looks like a problem in ChoicesJS. (Or maybe it's an intentional limitation by them?) Same problem occurs on their demo: https://choices-js.github.io/Choices/
Choices
A lightweight, configurable select box/text input plugin. Similar to Select2 and Selectize but without the jQuery dependency.