Skip to content

Commit

Permalink
fix: disabledOnChangeListener not work in form
Browse files Browse the repository at this point in the history
  • Loading branch information
mynetfan committed Dec 15, 2024
1 parent ce4af37 commit c5a2dde
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 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 @@ -231,11 +231,10 @@ function fieldBindEvent(slotProps: Record<string, any>) {
...(disabledOnInputListener ? { onInput: undefined } : {}),
};
}
return disabledOnInputListener
? {
onInput: undefined,
}
: {};
return {
...(disabledOnInputListener ? { onInput: undefined } : {}),
...(disabledOnChangeListener ? { onChange: undefined } : {}),
};
}
function createComponentProps(slotProps: Record<string, any>) {
Expand Down

0 comments on commit c5a2dde

Please sign in to comment.