Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

calendar firstDayOfWeek won't change dinamically #10574

Closed
jsegarradev opened this issue Sep 1, 2021 · 0 comments
Closed

calendar firstDayOfWeek won't change dinamically #10574

jsegarradev opened this issue Sep 1, 2021 · 0 comments
Assignees
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

Comments

@jsegarradev
Copy link

I'm submitting a ... (check one with "x")

[x] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

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

@jsegarradev jsegarradev changed the title calendar firstDayOfWeek 0 issue calendar firstDayOfWeek won't change dinamically Sep 1, 2021
@yigitfindikli yigitfindikli self-assigned this Dec 10, 2021
@yigitfindikli yigitfindikli added this to the 13.0.3 milestone Dec 10, 2021
@yigitfindikli yigitfindikli added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Dec 10, 2021
@yigitfindikli yigitfindikli modified the milestones: 13.0.3, 13.0.4 Dec 20, 2021
@yigitfindikli yigitfindikli added LTS-FIXED-12.2.5 Fixed in PrimeNG LTS 12.2.5 LTS-FIXED-11.4.10 Fixed in PrimeNG LTS 11.4.10 and removed LTS-PORTABLE labels Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants