update modalbindableinput to use on blur

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

View File

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

View File

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