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