From d6f8662e952c9001c1712a07c484af820df49e4f Mon Sep 17 00:00:00 2001 From: Conor Webb <126772285+ConorWebb96@users.noreply.github.com> Date: Thu, 12 Oct 2023 08:29:40 +0100 Subject: [PATCH] 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 --- packages/client/manifest.json | 11 +++++++++++ .../src/components/app/forms/CodeScanner.svelte | 1 + 2 files changed, 12 insertions(+) diff --git a/packages/client/manifest.json b/packages/client/manifest.json index d987344956..47b935b420 100644 --- a/packages/client/manifest.json +++ b/packages/client/manifest.json @@ -3419,6 +3419,17 @@ "value": "custom" } }, + { + "type": "event", + "label": "On change", + "key": "onChange", + "context": [ + { + "label": "Field Value", + "key": "value" + } + ] + }, { "type": "validation/string", "label": "Validation", diff --git a/packages/client/src/components/app/forms/CodeScanner.svelte b/packages/client/src/components/app/forms/CodeScanner.svelte index 9895413446..04d6919157 100644 --- a/packages/client/src/components/app/forms/CodeScanner.svelte +++ b/packages/client/src/components/app/forms/CodeScanner.svelte @@ -128,6 +128,7 @@
{ dispatch("change", value) }}