Commit 416774cb authored by Andrea Giammarchi's avatar Andrea Giammarchi

Issue 7439 - Custom filter table: trigger an error on wrong header

parent e125d147
......@@ -259,9 +259,7 @@ function addFilter(data)
function dispatch(type, detail)
{
// do not bother at all if there are no filters
// initialize the table on "filter:add" anyway
if (type === "filter:add" || this.filters.length)
if (/^filter:(?:add|error)$/.test(type) || this.filters.length)
this.dispatchEvent(new CustomEvent(type, {detail}));
}
......
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