From e3bb206b2dce18e5448aa73c3b0a78a554994a60 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 20 Apr 2021 12:48:37 +0100 Subject: [PATCH] Update new screen modal --- .../NavigationPanel/NewScreenModal.svelte | 30 +++++++++---------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/packages/builder/src/components/design/NavigationPanel/NewScreenModal.svelte b/packages/builder/src/components/design/NavigationPanel/NewScreenModal.svelte index 6594f4d90c..1253ab91bf 100644 --- a/packages/builder/src/components/design/NavigationPanel/NewScreenModal.svelte +++ b/packages/builder/src/components/design/NavigationPanel/NewScreenModal.svelte @@ -82,8 +82,8 @@ } const routeChanged = event => { - if (!event.target.value.startsWith("/")) { - route = "/" + event.target.value + if (!event.detail.startsWith("/")) { + route = "/" + event.detail } } @@ -92,24 +92,22 @@ + on:change={ev => templateChanged(ev.detail)} + options={templates} + placeholder={null} + getOptionLabel={x => x.name} + getOptionValue={(x, idx) => idx} /> - - +