fix(set): re-apply filters when clearing a field via the eraser button

This commit is contained in:
2026-06-14 09:30:36 +02:00
parent 4074aa7c4c
commit e94b8d2de5
+4
View File
@@ -55,6 +55,10 @@ class BrickChanger {
this.html_clear.addEventListener("click", ((changer) => (e) => {
changer.html_element.value = "";
changer.change();
// change() only POSTs to the server; dispatch an input event so
// client-side listeners (e.g. the parts table filter) react to
// the programmatic clear the same way they do to typing.
changer.html_element.dispatchEvent(new Event("input", { bubbles: true }));
})(this));
}