diff --git a/wled00/data/index.js b/wled00/data/index.js index 60c57fcdb..a07b935bf 100644 --- a/wled00/data/index.js +++ b/wled00/data/index.js @@ -2722,10 +2722,13 @@ function search(f,l=null) if (!l) return; // clear filter if searching in fxlist - if (l === 'fxlist' && f === document.activeElement) { + if (l === 'fxlist' && f.value !== '') { gId("filters").querySelectorAll("input[type=checkbox]").forEach((e)=>{e.checked=false;}); } + // do not search if filter is active + if (gId("filters").querySelectorAll("input[type=checkbox]:checked").length) return; + var el = gId(l).querySelectorAll('.lstI'); // filter list items but leave (Default & Solid) always visible for (i = (l==='pcont'?0:1); i < el.length; i++) {