diff --git a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/NavigationEditor/NavigationDrawer.svelte b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/NavigationEditor/NavigationDrawer.svelte index bcdb6391da..4d1823108c 100644 --- a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/NavigationEditor/NavigationDrawer.svelte +++ b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/NavigationEditor/NavigationDrawer.svelte @@ -15,13 +15,13 @@ export let links = [] const flipDurationMs = 150 + let dragDisabled = true $: links.forEach(link => { if (!link.id) { link.id = generate() } }) - $: urlOptions = $store.screens .map(screen => screen.routing?.route) .filter(x => x != null) @@ -37,6 +37,11 @@ const updateLinks = e => { links = e.detail.items } + + const handleFinalize = e => { + updateLinks(e) + dragDisabled = true + } @@ -49,13 +54,21 @@ items: links, flipDurationMs, dropTargetStyle: { outline: "none" }, + dragDisabled, }} - on:finalize={updateLinks} + on:finalize={handleFinalize} on:consider={updateLinks} > {#each links as link (link.id)}