Commit 22c1f86c by Netfan Committed by GitHub

fix: `disabledOnChangeListener` not work in form (#5146)

1 parent ce4af37f
...@@ -231,11 +231,10 @@ function fieldBindEvent(slotProps: Record<string, any>) { ...@@ -231,11 +231,10 @@ function fieldBindEvent(slotProps: Record<string, any>) {
...(disabledOnInputListener ? { onInput: undefined } : {}), ...(disabledOnInputListener ? { onInput: undefined } : {}),
}; };
} }
return disabledOnInputListener return {
? { ...(disabledOnInputListener ? { onInput: undefined } : {}),
onInput: undefined, ...(disabledOnChangeListener ? { onChange: undefined } : {}),
} };
: {};
} }
function createComponentProps(slotProps: Record<string, any>) { function createComponentProps(slotProps: Record<string, any>) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!