Skip to content

Commit b459eba

Browse files
committed
feat(ReactDOMHostConfig): event name to lowerCase.
1 parent b7cab3f commit b459eba

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/core/react-dom/client/ReactDOMHostConfig.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ namespace HostConfig {
4949
if (k === "style") return
5050
if (oldProps[k] === v) return
5151

52+
if (k.startsWith("on")) {
53+
k = k.toLowerCase()
54+
}
55+
5256
if (k === "dangerouslySetInnerHTML") {
5357
k = "innerHTML"
5458
v = v.__html

0 commit comments

Comments
 (0)