Skip to content

Commit cf05dc6

Browse files
committed
Add onClick event
1 parent dc63e7c commit cf05dc6

File tree

3 files changed

+1933
-1635
lines changed

3 files changed

+1933
-1635
lines changed

examples/app.jsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ class App extends React.Component {
8585
}
8686
return true;
8787
}}
88+
onClick={(event) => {
89+
const target = event.target || event.srcElement; // IE8
90+
console.log('click', target);
91+
}}
8892
onDropNode={(node, e) => {
8993
const source = e.dataTransfer.getData('text');
9094
document.querySelector('[data-id="dropped-result"]').innerHTML = 'Dropped to <b>' + quoteattr(node.name) + '</b>';

0 commit comments

Comments
 (0)