Skip to content

Commit b3d135f

Browse files
fix(module:form): wrong element to focus when clicking label (#8135)
1 parent 42cb2f5 commit b3d135f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

components/form/demo/label-wrap.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ import { FormControl, FormGroup, NonNullableFormBuilder, Validators } from '@ang
1212
</nz-form-control>
1313
</nz-form-item>
1414
<nz-form-item>
15-
<nz-form-label nzRequired nzFor="password" nzSpan="3" nzLabelWrap>
15+
<nz-form-label nzRequired nzFor="label-wrap-password" nzSpan="3" nzLabelWrap>
1616
Long text label Long text label
1717
</nz-form-label>
1818
<nz-form-control nzErrorTip="Please input your Password!" nzSpan="8">
19-
<input formControlName="password" nz-input type="password" id="password" />
19+
<input formControlName="password" nz-input type="password" id="label-wrap-password" />
2020
</nz-form-control>
2121
</nz-form-item>
2222
<nz-form-item>

0 commit comments

Comments
 (0)