Skip to content

Commit f11e7ad

Browse files
authored
fix: render now maps to lowercase DOM events (#507)
make events all lowercase, since our linter now enforces onClick instead of onclick
1 parent 3ea707e commit f11e7ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typescript/packages/common-html/src/render.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ const cleanEventProp = (key: string) => {
248248
if (!key.startsWith("on")) {
249249
return null;
250250
}
251-
return key.slice(2);
251+
return key.slice(2).toLowerCase();
252252
};
253253

254254
/** Attach an event listener, returning a function to cancel the listener */

0 commit comments

Comments
 (0)