From 5c07a9a50fa0f60939a2527d339230421448c6c6 Mon Sep 17 00:00:00 2001 From: tdro Date: Wed, 11 Oct 2023 19:37:23 -0400 Subject: static/js/fixedsearch: Track last click and return state For chromium and others that drop state Apply keyboard/click cancelling to form and children --- static/js/fixedsearch.ts | 61 ++++++++++++++++++++++++++++++++---------------- 1 file changed, 41 insertions(+), 20 deletions(-) (limited to 'static/js') diff --git a/static/js/fixedsearch.ts b/static/js/fixedsearch.ts index fb53b6b..f8be575 100644 --- a/static/js/fixedsearch.ts +++ b/static/js/fixedsearch.ts @@ -5,11 +5,11 @@ (function () { self.addEventListener("DOMContentLoaded", function () { - const form = document.getElementById("search-form"); // search form - const query = document.getElementById("search-input"); // input box for search - const submit = document.getElementById("search-submit"); // form submit button - const dropdown = document.getElementById("search-results"); // targets the