mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-11 03:22:59 +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;
|
return;
|
||||||
}
|
}
|
||||||
const controls = document.querySelectorAll(`[id="${id}"]`);
|
const controls = document.querySelectorAll(`[id="${id}"]`);
|
||||||
if (controls.length !== 1) {
|
if (controls.length > 1) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
const control = findDOMNode(this).querySelector(`[id="${id}"]`) as HTMLElement;
|
const control = findDOMNode(this).querySelector(`[id="${id}"]`) as HTMLElement;
|
||||||
if (control && control.focus) {
|
if (control && control.focus) {
|
||||||
|
Loading…
Reference in New Issue
Block a user