fix: disabledOnChangeListener not work in form (#5146)

This commit is contained in:
Netfan
2024-12-16 00:57:10 +08:00
committed by GitHub
parent ce4af37fd8
commit 22c1f86ca1

View File

@@ -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>) {