Bug: Datepicker TitleCasePipe not configurable #226
Labels
bug
Something isn't working
comp: lean
Issues related to @sbb-esta/angular lean design
comp: standard
Issues related to @sbb-esta/angular standard design
effort1: hours
help wanted
Extra attention is needed
prio4: low
Should be done after all higher priorities are done
Describe the bug
Currently the DateInput directive (used by the DatePicker) uses the
TitleCasePipe
to (re-)format the result of the formatted date (fromDateAdapter
). This makes it impossible to display e.g. the calendar week correctly ('\'KW\' w', provided via SBB_DATE_FORMATS).See
sbb-angular/projects/sbb-esta/angular-public/datepicker/src/date-input/date-input.directive.ts
Line 209 in 8df17ce
and
sbb-angular/projects/sbb-esta/angular-public/datepicker/src/date-input/date-input.directive.ts
Line 376 in 8df17ce
Expected behavior
Either completely remove the TitleCasePipe or make it possible to disable this via a new input or by injecting a custom TitleCasePipe.
Screenshots
The text was updated successfully, but these errors were encountered: