mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
revert 61968b91
This commit is contained in:
parent
539cca5cc4
commit
9a49a5c775
@ -222,7 +222,7 @@ export default class FormItem extends React.Component<FormItemProps, any> {
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user