diff --git a/components/form/FormItem.tsx b/components/form/FormItem.tsx index 70e5ea9345..89238f6179 100644 --- a/components/form/FormItem.tsx +++ b/components/form/FormItem.tsx @@ -222,7 +222,7 @@ export default class FormItem extends React.Component { return; } const controls = document.querySelectorAll(`[id="${id}"]`); - if (controls.length !== 1) { + if (controls.length > 1) { e.preventDefault(); const control = findDOMNode(this).querySelector(`[id="${id}"]`) as HTMLElement; if (control && control.focus) {