Commit 86e52ce5 by Vben Committed by GitHub

fix: resolve onChange issue in form component (#4890)

1 parent 9ddaba53
...@@ -238,6 +238,12 @@ function createComponentProps(slotProps: Record<string, any>) { ...@@ -238,6 +238,12 @@ function createComponentProps(slotProps: Record<string, any>) {
...slotProps.componentField, ...slotProps.componentField,
...computedProps.value, ...computedProps.value,
...bindEvents, ...bindEvents,
...(Reflect.has(computedProps.value, 'onChange')
? { onChange: computedProps.value.onChange }
: {}),
...(Reflect.has(computedProps.value, 'onInput')
? { onInput: computedProps.value.onInput }
: {}),
}; };
return binds; return binds;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!