diff --git a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/_components/ComponentList/ComponentKeyHandler.svelte b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/_components/ComponentList/ComponentKeyHandler.svelte index ebeaa235b5..749d4020c0 100644 --- a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/_components/ComponentList/ComponentKeyHandler.svelte +++ b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/_components/ComponentList/ComponentKeyHandler.svelte @@ -53,11 +53,8 @@ store.actions.components.selectNext() }, ["Escape"]: () => { - if ($isActive("./new")) { - event.preventDefault() - event.stopPropagation() - - $goto("./") + if ($isActive(`./:componentId/new`)) { + $goto(`./${$store.selectedComponentId}`) } }, }