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

Commit e90ab76

Browse files
author
jung-han
committed
feat: apply react hooks
1 parent 267cf7e commit e90ab76

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
@@ -19,7 +19,7 @@ export default class Grid extends React.Component {
1919
.forEach((key) => {
2020
const eventName = key[2].toLowerCase() + key.slice(3);
2121
// For <Grid onFocus={condition ? onFocus1 : onFocus2} />
22-
if (prevProps && prevProps[key] === props[key]) {
22+
if (prevProps && prevProps[key] !== props[key]) {
2323
this.gridInst.off(eventName);
2424
}
2525
this.gridInst.on(eventName, props[key]);

0 commit comments

Comments
 (0)