mirror of
https://github.com/wled/WLED.git
synced 2025-07-09 20:06:33 +00:00
Clear palette search when dialog is opened
This commit is contained in:
parent
0f24d924f9
commit
0ab71badfa
@ -3056,7 +3056,8 @@ function simplifyUI() {
|
||||
btn.innerText = "Change palette";
|
||||
function togglePal(e) {
|
||||
if (e.target != btn && e.target != div) return;
|
||||
gId("palw").lastChild.classList.toggle("hide");
|
||||
gId("palw").lastElementChild.classList.toggle("hide");
|
||||
clean(gId("palw").lastElementChild.firstElementChild.children[1]);
|
||||
};
|
||||
btn.addEventListener("click", togglePal);
|
||||
div.addEventListener("click", togglePal);
|
||||
|
Loading…
x
Reference in New Issue
Block a user