This commit is contained in:
afc163 2017-11-27 11:01:06 +08:00
parent 539cca5cc4
commit 9a49a5c775

View File

@ -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) {