From 4f19cc662ef7e4ce09a0017af24a79600a90e3f8 Mon Sep 17 00:00:00 2001 From: reschan Date: Sat, 14 May 2022 13:01:30 +0700 Subject: [PATCH] fix: show dropdown on input box click --- js/sq2items.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/sq2items.js b/js/sq2items.js index 76d6695..5e1230b 100644 --- a/js/sq2items.js +++ b/js/sq2items.js @@ -6,6 +6,9 @@ document.addEventListener("DOMContentLoaded", function() { ["filter3", sq2ItemFilters], ["filter4", sq2ItemFilters]]); for (const [field, data] of filterInputs) { + let field_choice = document.getElementById(field+"-choice"); + // show dropdown on click + field_choice.onclick = function() {field_choice.dispatchEvent(new Event('input', {bubbles:true}));}; filterInputs.set(field, new autoComplete({ data: { src: data,