From 57ba05d12f856e731967a722c94dd6325e952359 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thierry=20K=C3=BChni?= Date: Thu, 31 Oct 2024 23:37:02 +0100 Subject: [PATCH] typo --- docs/svelte-konva-v1-migration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/svelte-konva-v1-migration.md b/docs/svelte-konva-v1-migration.md index 41ccd30..7f07eca 100644 --- a/docs/svelte-konva-v1-migration.md +++ b/docs/svelte-konva-v1-migration.md @@ -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; } ```