Skip to content

Commit

Permalink
fix: disabledOnChangeListener not work in form (#5146)
Browse files Browse the repository at this point in the history
  • Loading branch information
mynetfan authored Dec 15, 2024
1 parent ce4af37 commit 22c1f86
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 22c1f86

Please sign in to comment.