Use initialValue rather than defaultValue for style definitions
This commit is contained in:
parent
59b7ccfac8
commit
27dd7dba75
|
@ -6,11 +6,9 @@
|
||||||
import {
|
import {
|
||||||
readableToRuntimeBinding,
|
readableToRuntimeBinding,
|
||||||
runtimeToReadableBinding,
|
runtimeToReadableBinding,
|
||||||
CAPTURE_VAR_INSIDE_MUSTACHE,
|
|
||||||
} from "builderStore/replaceBindings"
|
} from "builderStore/replaceBindings"
|
||||||
import { DropdownMenu } from "@budibase/bbui"
|
import { DropdownMenu } from "@budibase/bbui"
|
||||||
import BindingDropdown from "components/userInterface/BindingDropdown.svelte"
|
import BindingDropdown from "components/userInterface/BindingDropdown.svelte"
|
||||||
import { onMount } from "svelte"
|
|
||||||
|
|
||||||
export let label = ""
|
export let label = ""
|
||||||
export let bindable = true
|
export let bindable = true
|
||||||
|
@ -70,8 +68,8 @@
|
||||||
|
|
||||||
let temp = runtimeToReadableBinding(bindableProperties, value)
|
let temp = runtimeToReadableBinding(bindableProperties, value)
|
||||||
|
|
||||||
return value == null && props.defaultValue !== undefined
|
return value == null && props.initialValue !== undefined
|
||||||
? props.defaultValue
|
? props.initialValue
|
||||||
: temp
|
: temp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue