Skip to content

Commit 2cfc30c

Browse files
committed
Add onDoubleClick event (#2)
1 parent 6211e0a commit 2cfc30c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ class App extends React.Component {
125125
const target = event.target || event.srcElement; // IE8
126126
console.log('click:', target);
127127
}}
128+
onDoubleClick={(event) => {
129+
console.log('double click:', target);
130+
}}
128131
onOpenNode={(node) => {
129132
console.log('open node:', node);
130133
}}

src/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ module.exports = class extends React.Component {
1414

1515
eventHandlers = {
1616
onClick: null,
17+
onDoubleClick: null,
1718
onClusterWillChange: null,
1819
onClusterDidChange: null,
1920
onContentWillUpdate: null,

0 commit comments

Comments
 (0)