Browse Source

Fix link in form item label

pull/8335/head
afc163 7 years ago
parent
commit
61968b91cf
  1. 2
      components/form/FormItem.tsx

2
components/form/FormItem.tsx

@ -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…
Cancel
Save