Skip to content

Commit

Permalink
fix: resolve onChange issue in form component (#4890)
Browse files Browse the repository at this point in the history
  • Loading branch information
anncwb authored Nov 13, 2024
1 parent 9ddaba5 commit 86e52ce
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/@core/ui-kit/form-ui/src/form-render/form-field.vue
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,12 @@ function createComponentProps(slotProps: Record<string, any>) {
...slotProps.componentField,
...computedProps.value,
...bindEvents,
...(Reflect.has(computedProps.value, 'onChange')
? { onChange: computedProps.value.onChange }
: {}),
...(Reflect.has(computedProps.value, 'onInput')
? { onInput: computedProps.value.onInput }
: {}),
};
return binds;
Expand Down

0 comments on commit 86e52ce

Please sign in to comment.