From 227951135c5fc2f10047989418ba0e2e8c712b5e Mon Sep 17 00:00:00 2001 From: Flummi Date: Thu, 24 Mar 2022 12:29:59 +0100 Subject: [PATCH] dscheis firefox h@ix8 --- public/s/js/admin.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/public/s/js/admin.js b/public/s/js/admin.js index cf95641..6912755 100644 --- a/public/s/js/admin.js +++ b/public/s/js/admin.js @@ -114,6 +114,7 @@ const flash = ({ type, msg }) => { input.size = "10"; input.value = ""; input.setAttribute("list", "testlist"); + input.setAttribute("autoComplete", "off"); span.insertAdjacentElement("afterbegin", input); insert.insertAdjacentElement("beforebegin", span); @@ -167,7 +168,10 @@ const flash = ({ type, msg }) => { for(const entry of res.suggestions) { const option = document.createElement('option'); option.value = entry.tag; - option.innerText = `tagged ${entry.tagged} times`; + + if(!/fox/.test(navigator.userAgent)) + option.innerText = `tagged ${entry.tagged} times`; + testList.insertAdjacentElement('beforeEnd', option); }; }, 500);