未验证 提交 24f76ef1 编写于 作者: S sun 提交者: GitHub

fix: 修复FormItem代理子元素onChange后忽略了原属性的问题 (#619)

上级 f47e5335
......@@ -65,6 +65,10 @@ export class FormItem extends React.Component<FieldProps> {
onChange: (
event: React.ChangeEvent<HTMLInputElement> | number | string | string[]
) => {
const originOnChange = (children as any).props.onChange
if(originOnChange){
originOnChange(event)
}
let newValue = event
switch (type) {
case 'checkbox':
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册