Fix filter hiding on chrome

This commit is contained in:
Woody 2023-11-24 13:48:12 +01:00
parent 706428fe98
commit cb293fcdb3
No known key found for this signature in database
GPG Key ID: 9872D7F5072789B2

View File

@ -2775,12 +2775,10 @@ function filterFocus(e)
sCol('--sti', sti+"px");
}, 252);
if (e.type === "blur") {
let t = e.relatedTarget ? e.relatedTarget : e.explicitOriginalTarget;
do {
if (t.id && (t.id === "fxFind")) { setTimeout(()=>{t.firstElementChild.focus();},150); return; }
t = t.parentElement;
} while (t.tagName !== "BODY");
setTimeout(()=>{f.classList.add('fade');},255); // wait with hiding
setTimeout(()=>{
if (e.target === document.activeElement) return;
f.classList.add('fade');
},255); // wait with hiding
}
}
@ -2788,6 +2786,7 @@ function filterFx()
{
const searchIn = gId('fxFind').children[0];
searchIn.value = '';
searchIn.focus();
clean(searchIn.nextElementSibling);
const el = gId("fxlist").querySelectorAll('.lstI');
for (let i = 1; i < el.length; i++) {