From c73315cc44a49b40bd590e41c5d565cc03a903be Mon Sep 17 00:00:00 2001 From: Dean Date: Fri, 9 Jun 2023 17:42:41 +0100 Subject: [PATCH] Temporarily remove the focus store update as it triggers a full redraw of the component settings --- .../src/components/common/bindings/BindingPanel.svelte | 2 +- .../components/common/bindings/DrawerBindableInput.svelte | 4 ++-- .../design/settings/controls/PropertyControl.svelte | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/builder/src/components/common/bindings/BindingPanel.svelte b/packages/builder/src/components/common/bindings/BindingPanel.svelte index 3843eabf45..2678843593 100644 --- a/packages/builder/src/components/common/bindings/BindingPanel.svelte +++ b/packages/builder/src/components/common/bindings/BindingPanel.svelte @@ -343,7 +343,7 @@ secondary quiet on:click={() => { - store.actions.settings.propertyFocus(null) + // store.actions.settings.propertyFocus(null) drawerActions.hide() }} > diff --git a/packages/builder/src/components/common/bindings/DrawerBindableInput.svelte b/packages/builder/src/components/common/bindings/DrawerBindableInput.svelte index f41b66bd77..a755220504 100644 --- a/packages/builder/src/components/common/bindings/DrawerBindableInput.svelte +++ b/packages/builder/src/components/common/bindings/DrawerBindableInput.svelte @@ -36,7 +36,7 @@ const saveBinding = () => { onChange(tempValue) - store.actions.settings.propertyFocus(null) + // store.actions.settings.propertyFocus(null) onBlur() bindingDrawer.hide() } @@ -70,7 +70,7 @@
{ - store.actions.settings.propertyFocus(key) + //store.actions.settings.propertyFocus(key) bindingDrawer.show() }} > diff --git a/packages/builder/src/components/design/settings/controls/PropertyControl.svelte b/packages/builder/src/components/design/settings/controls/PropertyControl.svelte index daa3f29592..0d1bb01d15 100644 --- a/packages/builder/src/components/design/settings/controls/PropertyControl.svelte +++ b/packages/builder/src/components/design/settings/controls/PropertyControl.svelte @@ -74,9 +74,9 @@ store.actions.settings.highlight(null) } // To fix focus 'affect' when property is target of a drawer other actions in the builder. - if (propertyFocus) { - store.actions.settings.propertyFocus(null) - } + // if (propertyFocus) { + // store.actions.settings.propertyFocus(null) + // } })