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

Commit 267cf7e

Browse files
author
jung-han
committed
chore: apply review for 2.0
1 parent 21f6acb commit 267cf7e

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,9 @@ const MyComponent = () => (
228228
columns={columns}
229229
data={dataSource}
230230
pageOptions={{perPage: 3}}
231+
onSuccessResponse={(data) => {
232+
console.log(data);
233+
}}
231234
/>
232235
);
233236
```

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@toast-ui/react-grid",
33
"version": "2.0.0",
4-
"description": "Toast UI Grid for React",
4+
"description": "TOAST UI Grid for React",
55
"main": "dist/toastui-react-grid.js",
66
"files": [
77
"dist",

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export default class Grid extends React.Component {
1818
.filter((key) => /on[A-Z][a-zA-Z]+/.test(key))
1919
.forEach((key) => {
2020
const eventName = key[2].toLowerCase() + key.slice(3);
21+
// For <Grid onFocus={condition ? onFocus1 : onFocus2} />
2122
if (prevProps && prevProps[key] === props[key]) {
2223
this.gridInst.off(eventName);
2324
}

0 commit comments

Comments
 (0)