From 52d79236e8d7d7dc0a9a496622fbed6aa4f5a031 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Tue, 11 Feb 2020 22:11:50 +0000 Subject: [PATCH] close dropdown on component change --- packages/builder/src/userInterface/PropertyCascader.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/builder/src/userInterface/PropertyCascader.svelte b/packages/builder/src/userInterface/PropertyCascader.svelte index 0de1f21519..bf5803d6f5 100644 --- a/packages/builder/src/userInterface/PropertyCascader.svelte +++ b/packages/builder/src/userInterface/PropertyCascader.svelte @@ -34,13 +34,14 @@ $: { const binding = getBinding(value); + if (bindingPath !== binding.path) isOpen = false; bindingPath = binding.path; bindingFallbackValue = binding.fallback ? binding.fallback : typeof value === "object" ? "" : value; - + const currentScreen = $store.screens.find( ({ name }) => name === $store.currentPreviewItem.name );