Skip to content

Commit e431505

Browse files
committed
Fix autocomplete not triggeing search on Enter.
1 parent 70899c1 commit e431505

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

site/static/main.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -279,13 +279,12 @@ async function screenshotElement(element) {
279279

280280
onSelect: (val) => {
281281
// autocomp search isn't complete. Use the user's input instead of autocomp selection.
282-
if (debounce || !val) {
283-
return elQ.value;
282+
if (val) {
283+
elQ.value = val;
284284
}
285285

286-
elQ.value = val;
287286
elForm.dispatchEvent(new Event("submit", { cancelable: true }));
288-
return val;
287+
return elQ.value;
289288
}
290289
});
291290
})();

0 commit comments

Comments
 (0)