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:
Conor Webb 2023-10-12 08:29:40 +01:00 committed by GitHub
parent f4e75f4a2b
commit d6f8662e95
2 changed files with 12 additions and 0 deletions

View File

@ -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",

View File

@ -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)
}} }}