Skip to content

Commit e80a873

Browse files
committed
angular-material: Fix unfocused description display for number renderer
The template had a bug closing the ngIf that checks whether the description is shown too early. This lead to a DOMException and the description to never be shown. Fix #2166
1 parent 071b320 commit e80a873

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/angular-material/src/controls/number.renderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ import merge from 'lodash/merge';
5151
(focus)="focused = true"
5252
(focusout)="focused = false"
5353
/>
54-
<mat-hint *ngIf="shouldShowUnfocusedDescription()" || focused>{{
54+
<mat-hint *ngIf="shouldShowUnfocusedDescription() || focused">{{
5555
description
5656
}}</mat-hint>
5757
<mat-error>{{ error }}</mat-error>

0 commit comments

Comments
 (0)