mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-10 11:03:19 +08:00
Fix link in form item label
This commit is contained in:
parent
892de0c609
commit
61968b91cf
@ -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