From 274b31a87d22daea15ee4706ff6c26d5772c0934 Mon Sep 17 00:00:00 2001 From: Makyen Date: Sun, 21 Aug 2022 07:38:07 -0700 Subject: [PATCH] In live bs-searchboxes, also search on input (i.e. paste). This should resolve the titular issue in #941 of pasting a domain name in the new domain link dialog not triggering a search and fill of the available domains. --- app/javascript/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/util.js b/app/javascript/util.js index c8ea60339..9e8f2c6f0 100644 --- a/app/javascript/util.js +++ b/app/javascript/util.js @@ -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; }