diff --git a/apps/svelte.dev/content/tutorial/01-svelte/08-actions/01-actions/index.md b/apps/svelte.dev/content/tutorial/01-svelte/08-actions/01-actions/index.md index 4e0843c7da..c2a5bfd4f4 100644 --- a/apps/svelte.dev/content/tutorial/01-svelte/08-actions/01-actions/index.md +++ b/apps/svelte.dev/content/tutorial/01-svelte/08-actions/01-actions/index.md @@ -11,28 +11,7 @@ Actions are essentially element-level lifecycle functions. They're useful for th In this app, you can scribble on the ``, and change colours and brush size via the menu. But if you open the menu and cycle through the options with the Tab key, you'll soon find that the focus isn't _trapped_ inside the modal. -We can fix that with an action. Import `trapFocus` from `actions.svelte.js`... - -```svelte -/// file: App.svelte - -``` - -...then add it to the menu with the `use:` directive: - -```svelte -/// file: App.svelte -