From 1d86cf1fe13ac5d61a86fc72a8b809e621891c0c Mon Sep 17 00:00:00 2001 From: honzapatCZ Date: Thu, 27 Aug 2026 17:19:32 +0200 Subject: [PATCH] Adding autocomplete custom change --- Form/Core/AutocompleteSelect.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Form/Core/AutocompleteSelect.tsx b/Form/Core/AutocompleteSelect.tsx index 71dda30..835174e 100644 --- a/Form/Core/AutocompleteSelect.tsx +++ b/Form/Core/AutocompleteSelect.tsx @@ -84,9 +84,12 @@ export function AutocompleteSelect({ title, titleProps = null, data, nullable } onChange={(value) => { // If value is an object (from internalData lookup), store only the primitive .value - field.onChange({ target: { value, name: field.name } }); - } - } + const event = { target: { value, name: field.name } }; + field.onChange(event); + if (props.onChange) { + (props.onChange as any)(event); + } + }} nullable={nullable as any} >