From 22df82dd9d49c4757cd010038f9e3221ee746858 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Mon, 13 Jun 2022 16:11:12 +0100 Subject: [PATCH] Revert focus specific logic in other components and simplify --- .../bbui/src/ActionButton/ActionButton.svelte | 26 +---------- packages/bbui/src/Form/Combobox.svelte | 2 - packages/bbui/src/Form/Core/Combobox.svelte | 20 ++------- .../bbui/src/Form/Core/Multiselect.svelte | 2 - packages/bbui/src/Form/Core/Picker.svelte | 28 +----------- packages/bbui/src/Form/Core/Select.svelte | 2 - packages/bbui/src/Form/Multiselect.svelte | 2 - packages/bbui/src/Form/Select.svelte | 2 - .../src/builderStore/store/frontend.js | 43 ------------------- .../bindings/DrawerBindableCombobox.svelte | 2 - .../AppPreview/CurrentItemPreview.svelte | 26 ++--------- .../ComponentSettingsSection.svelte | 10 ----- .../DataProviderSelect.svelte | 2 - .../PropertyControls/DataSourceSelect.svelte | 2 - .../PropertyControls/FieldSelect.svelte | 9 +--- .../PropertyControls/FormFieldSelect.svelte | 3 +- .../IconSelect/IconSelect.svelte | 3 +- .../PropertyControls/MultiFieldSelect.svelte | 9 +--- .../PropertyControls/PropertyControl.svelte | 33 +++----------- .../PropertyControls/URLSelect.svelte | 2 - packages/client/manifest.json | 13 ++++-- .../app/ComponentPlaceholder.svelte | 16 +++---- .../client/src/components/app/Link.svelte | 7 +-- .../src/components/app/forms/Field.svelte | 4 +- packages/client/src/stores/builder.js | 4 +- 25 files changed, 37 insertions(+), 235 deletions(-) diff --git a/packages/bbui/src/ActionButton/ActionButton.svelte b/packages/bbui/src/ActionButton/ActionButton.svelte index f24eb25ffb..b518ac3d92 100644 --- a/packages/bbui/src/ActionButton/ActionButton.svelte +++ b/packages/bbui/src/ActionButton/ActionButton.svelte @@ -1,8 +1,7 @@ {#each sections as section, idx (section.name)} @@ -116,7 +107,6 @@ {componentBindings} {componentInstance} {componentDefinition} - autofocus={isFocused(setting)} /> {/if} {/each} diff --git a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/DataProviderSelect.svelte b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/DataProviderSelect.svelte index b16530bfe6..a5b7a08255 100644 --- a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/DataProviderSelect.svelte +++ b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/DataProviderSelect.svelte @@ -6,7 +6,6 @@ import { createEventDispatcher, onMount } from "svelte" export let value - export let autofocus = false const dispatch = createEventDispatcher() const getValue = component => `{{ literal ${makePropSafe(component._id)} }}` @@ -25,7 +24,6 @@ +