From 2b9e6ec624d7d8d513e384d7b37e5a4c5ff3d86f Mon Sep 17 00:00:00 2001 From: Jaime Date: Tue, 14 Apr 2020 14:42:27 -0400 Subject: [PATCH] update tutorial 07-lifecycle\04-tick to use preventDefault the svelte way --- site/content/tutorial/07-lifecycle/04-tick/app-a/App.svelte | 4 +--- site/content/tutorial/07-lifecycle/04-tick/app-b/App.svelte | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/site/content/tutorial/07-lifecycle/04-tick/app-a/App.svelte b/site/content/tutorial/07-lifecycle/04-tick/app-a/App.svelte index 3386ff93df..ff3482fb56 100644 --- a/site/content/tutorial/07-lifecycle/04-tick/app-a/App.svelte +++ b/site/content/tutorial/07-lifecycle/04-tick/app-a/App.svelte @@ -4,8 +4,6 @@ async function handleKeydown(event) { if (event.which !== 9) return; - event.preventDefault(); - const { selectionStart, selectionEnd, value } = this; const selection = value.slice(selectionStart, selectionEnd); @@ -32,4 +30,4 @@ } - \ No newline at end of file + diff --git a/site/content/tutorial/07-lifecycle/04-tick/app-b/App.svelte b/site/content/tutorial/07-lifecycle/04-tick/app-b/App.svelte index c9cb6de420..0840487ce1 100644 --- a/site/content/tutorial/07-lifecycle/04-tick/app-b/App.svelte +++ b/site/content/tutorial/07-lifecycle/04-tick/app-b/App.svelte @@ -6,8 +6,6 @@ async function handleKeydown(event) { if (event.which !== 9) return; - event.preventDefault(); - const { selectionStart, selectionEnd, value } = this; const selection = value.slice(selectionStart, selectionEnd); @@ -34,4 +32,4 @@ } - \ No newline at end of file +