Skip to content

Commit

Permalink
fix(ui): fixed Angular build warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksandr Beliaev committed Apr 10, 2024
1 parent 831e024 commit fa52e08
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
[ngClass]="getDateClass(day, j)"
(click)="handleClick(day)"
[attr.aria-label]="dayFullLabels[j]"
[attr.aria-selected]="day === selectedDate?.getDay()"
[attr.aria-selected]="day === selectedDate.getDay()"
[attr.aria-current]="day === today.getDate() ? 'date' : null"
>
{{ day }}
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/src/lib/datepicker/datepicker.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
maxlength="10"
[attr.id]="htmlId"
class="cvi-datepicker__input-field"
[placeholder]="placeholder??''"
[placeholder]="placeholder"
[attr.disabled]="disabled ? disabled : null"
[(ngModel)]="value"
[attr.aria-labelledby]="'datePickerLabel-' + baseId"
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/src/lib/html-section/safe-html-pipe.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Pipe, PipeTransform } from '@angular/core';
import { DomSanitizer } from '@angular/platform-browser';
import sanitizeHtml, { AllowedAttribute, Attributes } from 'sanitize-html';
import sanitizeHtml, { AllowedAttribute } from 'sanitize-html';

@Pipe({
name: 'safeHtml',
Expand Down

0 comments on commit fa52e08

Please sign in to comment.