Skip to content

Commit

Permalink
angular-material: Fix unfocused description display for number renderer
Browse files Browse the repository at this point in the history
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
  • Loading branch information
lucas-koehler committed Jul 27, 2023
1 parent 071b320 commit e80a873
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/angular-material/src/controls/number.renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ import merge from 'lodash/merge';
(focus)="focused = true"
(focusout)="focused = false"
/>
<mat-hint *ngIf="shouldShowUnfocusedDescription()" || focused>{{
<mat-hint *ngIf="shouldShowUnfocusedDescription() || focused">{{
description
}}</mat-hint>
<mat-error>{{ error }}</mat-error>
Expand Down

0 comments on commit e80a873

Please sign in to comment.