Commit ca42b41a authored by Andrea Giammarchi's avatar Andrea Giammarchi

Fix #303 - do not force render the toggle

parent 906a0bdc
......@@ -391,18 +391,23 @@ class IOFilterList extends IOElement
// not when it's clicked
onchange(event)
{
const td = event.currentTarget.closest("td");
const {currentTarget} = event;
const td = currentTarget.closest("td");
if (td.dataset.column === "status")
{
const checkbox = currentTarget.closest("io-toggle");
const filter = getFilter(event);
filter.disabled = !filter.disabled;
filter.disabled = !checkbox.checked;
browser.runtime.sendMessage({
type: "filters.toggle",
text: filter.text,
disabled: filter.disabled
});
}
this.render();
else
{
this.render();
}
}
postRender(list)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment