Skip to content

Commit

Permalink
In live bs-searchboxes, also search on input (i.e. paste).
Browse files Browse the repository at this point in the history
This should resolve the titular issue in Charcoal-SE#941 of pasting a
domain name in the new domain link dialog not triggering a
search and fill of the available domains.
  • Loading branch information
makyen committed Aug 21, 2022
1 parent ead944a commit 274b31a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export function installSelectpickers() {
noneResultsText: 'No results matched your search or you need to enter more characters to search with.'
});

$(e).parent().find('.bs-searchbox input[type="search"]').on('keydown', ev => {
$(e).parent().find('.bs-searchbox input[type="search"]').on('keydown input', ev => {
if ($(ev.target).val().length < 2) {
return;
}
Expand Down

0 comments on commit 274b31a

Please sign in to comment.