mirror of
https://github.com/wled/WLED.git
synced 2025-07-19 08:46:34 +00:00
Fix filter hiding on chrome
This commit is contained in:
parent
706428fe98
commit
cb293fcdb3
@ -2775,12 +2775,10 @@ function filterFocus(e)
|
|||||||
sCol('--sti', sti+"px");
|
sCol('--sti', sti+"px");
|
||||||
}, 252);
|
}, 252);
|
||||||
if (e.type === "blur") {
|
if (e.type === "blur") {
|
||||||
let t = e.relatedTarget ? e.relatedTarget : e.explicitOriginalTarget;
|
setTimeout(()=>{
|
||||||
do {
|
if (e.target === document.activeElement) return;
|
||||||
if (t.id && (t.id === "fxFind")) { setTimeout(()=>{t.firstElementChild.focus();},150); return; }
|
f.classList.add('fade');
|
||||||
t = t.parentElement;
|
},255); // wait with hiding
|
||||||
} while (t.tagName !== "BODY");
|
|
||||||
setTimeout(()=>{f.classList.add('fade');},255); // wait with hiding
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2788,6 +2786,7 @@ function filterFx()
|
|||||||
{
|
{
|
||||||
const searchIn = gId('fxFind').children[0];
|
const searchIn = gId('fxFind').children[0];
|
||||||
searchIn.value = '';
|
searchIn.value = '';
|
||||||
|
searchIn.focus();
|
||||||
clean(searchIn.nextElementSibling);
|
clean(searchIn.nextElementSibling);
|
||||||
const el = gId("fxlist").querySelectorAll('.lstI');
|
const el = gId("fxlist").querySelectorAll('.lstI');
|
||||||
for (let i = 1; i < el.length; i++) {
|
for (let i = 1; i < el.length; i++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user