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"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "event",
|
||||
"label": "On change",
|
||||
"key": "onChange",
|
||||
"context": [
|
||||
{
|
||||
"label": "Field Value",
|
||||
"key": "value"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "validation/string",
|
||||
"label": "Validation",
|
||||
|
|
|
@ -128,6 +128,7 @@
|
|||
<div class="manual-input">
|
||||
<Input
|
||||
bind:value
|
||||
updateOnChange={false}
|
||||
on:change={() => {
|
||||
dispatch("change", value)
|
||||
}}
|
||||
|
|
Loading…
Reference in New Issue