Skip to content

Commit 214aba5

Browse files
committed
feat: add native DOM event binding to HTML tag attribute filter
1 parent 3154737 commit 214aba5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/util/tags.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,11 @@ function isTransition(name) {
127127
}
128128

129129
function isHtmlAttribute(value) {
130-
return ["id", "class", "style"].includes(value) || value.startsWith("data-");
130+
return (
131+
["id", "class", "style"].includes(value) ||
132+
value.startsWith("data-") ||
133+
value.startsWith("on")
134+
);
131135
}
132136

133137
export { isHtmlTag, isHtmlAttribute, isTransition };

0 commit comments

Comments
 (0)