zefeng
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
4 deletions
-
components/form/FormItem.tsx
|
@ -287,10 +287,7 @@ function FormItem(props: FormItemProps): React.ReactElement { |
|
|
const childProps = { ...children.props, ...mergedControl }; |
|
|
const childProps = { ...children.props, ...mergedControl }; |
|
|
|
|
|
|
|
|
// We should keep user origin event handler
|
|
|
// We should keep user origin event handler
|
|
|
const triggers = new Set<string>(); |
|
|
const triggers = new Set<string>([...toArray(trigger), ...toArray(validateTrigger)]); |
|
|
[...toArray(trigger), ...toArray(validateTrigger)].forEach(eventName => { |
|
|
|
|
|
triggers.add(eventName); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
triggers.forEach(eventName => { |
|
|
triggers.forEach(eventName => { |
|
|
childProps[eventName] = (...args: any[]) => { |
|
|
childProps[eventName] = (...args: any[]) => { |
|
|