diff --git a/components/form/FormItem.tsx b/components/form/FormItem.tsx index 0616212a75..24d7e6dfbb 100644 --- a/components/form/FormItem.tsx +++ b/components/form/FormItem.tsx @@ -287,10 +287,7 @@ function FormItem(props: FormItemProps): React.ReactElement { const childProps = { ...children.props, ...mergedControl }; // We should keep user origin event handler - const triggers = new Set(); - [...toArray(trigger), ...toArray(validateTrigger)].forEach(eventName => { - triggers.add(eventName); - }); + const triggers = new Set([...toArray(trigger), ...toArray(validateTrigger)]); triggers.forEach(eventName => { childProps[eventName] = (...args: any[]) => {