Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
TeyKey1 committed Oct 31, 2024
1 parent e1eb850 commit 57ba05d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/svelte-konva-v1-migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ Canceling event bubbling with calling `preventDefault()` on the event payload is
```diff
function handleClick(e) {
window.alert(`Clicked on rectangle: ${e.type}`);
- e.cancelEventBubble();
- e.preventDefault();
+ e.cancelBubble = true;
}
```
Expand Down

0 comments on commit 57ba05d

Please sign in to comment.