Skip to content

Commit

Permalink
docs(material/form-field): fixed propname in guide (#25328)
Browse files Browse the repository at this point in the history
not defined `elRef` was changed on defined `_elementRef`
  • Loading branch information
ApplY3D authored Aug 16, 2022
1 parent 1fbeb79 commit a2eb778
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/creating-a-custom-form-field-control.md
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ click. In our case we'll just focus the first `<input>` if the user isn't about
```ts
onContainerClick(event: MouseEvent) {
if ((event.target as Element).tagName.toLowerCase() != 'input') {
this.elRef.nativeElement.querySelector('input').focus();
this._elementRef.nativeElement.querySelector('input').focus();
}
}
```
Expand Down

0 comments on commit a2eb778

Please sign in to comment.