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

dev-v5
Netfan 2024-12-16 00:57:10 +08:00 committed by GitHub
parent ce4af37fd8
commit 22c1f86ca1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 5 deletions

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