Adding onchange actions to code scanner. (#12029)
* Adding onchange actions to code scanner. * Removed unused code, set updateOnChange to false. --------- Co-authored-by: Michael Drury <me@michaeldrury.co.uk>
This commit is contained in:
parent
f4e75f4a2b
commit
d6f8662e95
|
@ -3419,6 +3419,17 @@
|
||||||
"value": "custom"
|
"value": "custom"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"type": "event",
|
||||||
|
"label": "On change",
|
||||||
|
"key": "onChange",
|
||||||
|
"context": [
|
||||||
|
{
|
||||||
|
"label": "Field Value",
|
||||||
|
"key": "value"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": "validation/string",
|
"type": "validation/string",
|
||||||
"label": "Validation",
|
"label": "Validation",
|
||||||
|
|
|
@ -128,6 +128,7 @@
|
||||||
<div class="manual-input">
|
<div class="manual-input">
|
||||||
<Input
|
<Input
|
||||||
bind:value
|
bind:value
|
||||||
|
updateOnChange={false}
|
||||||
on:change={() => {
|
on:change={() => {
|
||||||
dispatch("change", value)
|
dispatch("change", value)
|
||||||
}}
|
}}
|
||||||
|
|
Loading…
Reference in New Issue