calendar firstDayOfWeek won't change dinamically #10574
Labels
LTS-FIXED-11.4.10
Fixed in PrimeNG LTS 11.4.10
LTS-FIXED-12.2.5
Fixed in PrimeNG LTS 12.2.5
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
I'm submitting a ... (check one with "x")
Current behavior
Can't change firstDayOfWeek property dinamically with language change
Expected behavior
When firstDayOfWeek property's binded variable changes, calendar should update his firstDay index.
Minimal reproduction of the problem with instructions
I reproduced this with a simple button that changes the value of the binded variable from 0 to 1or 1 to 0 everytime user clicks it.
You will notice that the calendar won't update the columns.
https://stackblitz.com/edit/github-erkfyy?file=src/app/app.component.html
What is the motivation / use case for changing the behavior?
This would make posible to adapt the calendar day columns to the current language selected by user.
Angular version: 11
PrimeNG version: 11.4.4
The text was updated successfully, but these errors were encountered: