Skip to content
This repository was archived by the owner on Oct 24, 2019. It is now read-only.

Commit 3b5c6a2

Browse files
author
DongWoo Kim
committed
fix: regexp for onXXX handler
1 parent 904fec8 commit 3b5c6a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default class Grid extends React.Component {
3535

3636
bindEventHandlers() {
3737
Object.keys(this.props)
38-
.filter((key) => /on[A-Z][a-z0-9]+/.test(key))
38+
.filter((key) => /on[A-Z][a-zA-Z]+/.test(key))
3939
.forEach((key) => {
4040
const eventName = key[2].toLowerCase() + key.slice(3);
4141
this.gridInst.on(eventName, this.props[key]);

0 commit comments

Comments
 (0)