1
0
Fork 0
mirror of synced 2024-09-10 22:46:09 +12:00

update modalbindableinput to use on blur

This commit is contained in:
Peter Clement 2022-04-25 15:17:35 +01:00
parent 2306c5d09d
commit 470b98ee54
2 changed files with 4 additions and 0 deletions

View file

@ -193,6 +193,7 @@
on:change={e => onChange(e, key)} on:change={e => onChange(e, key)}
{bindings} {bindings}
fillWidth fillWidth
updateOnChange={false}
/> />
{:else} {:else}
<DrawerBindableInput <DrawerBindableInput
@ -270,6 +271,7 @@
type={value.customType} type={value.customType}
on:change={e => onChange(e, key)} on:change={e => onChange(e, key)}
{bindings} {bindings}
updateOnChange={false}
/> />
{:else} {:else}
<div class="test"> <div class="test">

View file

@ -15,6 +15,7 @@
export let placeholder export let placeholder
export let label export let label
export let allowJS = false export let allowJS = false
export let updateOnChange = true
const dispatch = createEventDispatcher() const dispatch = createEventDispatcher()
let bindingModal let bindingModal
@ -41,6 +42,7 @@
value={isJS ? "(JavaScript function)" : readableValue} value={isJS ? "(JavaScript function)" : readableValue}
on:change={event => onChange(event.detail)} on:change={event => onChange(event.detail)}
{placeholder} {placeholder}
{updateOnChange}
/> />
<div class="icon" on:click={bindingModal.show}> <div class="icon" on:click={bindingModal.show}>
<Icon size="S" name="FlashOn" /> <Icon size="S" name="FlashOn" />