From 27dd7dba75aeb75d89f08630698d35fe31aea693 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 6 Jan 2021 10:15:22 +0000 Subject: [PATCH] Use initialValue rather than defaultValue for style definitions --- .../src/components/userInterface/PropertyControl.svelte | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/builder/src/components/userInterface/PropertyControl.svelte b/packages/builder/src/components/userInterface/PropertyControl.svelte index 44e98ad7d9..2901dc6f3f 100644 --- a/packages/builder/src/components/userInterface/PropertyControl.svelte +++ b/packages/builder/src/components/userInterface/PropertyControl.svelte @@ -6,11 +6,9 @@ import { readableToRuntimeBinding, runtimeToReadableBinding, - CAPTURE_VAR_INSIDE_MUSTACHE, } from "builderStore/replaceBindings" import { DropdownMenu } from "@budibase/bbui" import BindingDropdown from "components/userInterface/BindingDropdown.svelte" - import { onMount } from "svelte" export let label = "" export let bindable = true @@ -70,8 +68,8 @@ let temp = runtimeToReadableBinding(bindableProperties, value) - return value == null && props.defaultValue !== undefined - ? props.defaultValue + return value == null && props.initialValue !== undefined + ? props.initialValue : temp }