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

disabledDates in calendar are not updating #3283

Closed
wsz34 opened this issue Jul 3, 2017 · 1 comment
Closed

disabledDates in calendar are not updating #3283

wsz34 opened this issue Jul 3, 2017 · 1 comment
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@wsz34
Copy link

wsz34 commented Jul 3, 2017

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

Plunkr Case (Bug Reports)
http://plnkr.co/edit/FykwvAeH0BhdxZUiF6RG?p=preview

Current behavior
First dates set as disabledDates are marked in the calendar as disabled. But if I update disabledDates property in the component, I have to go to the next month and then back to see changes.

Expected behavior
After changing disabledDates value, changes should be visible in the calendar instantly.

Minimal reproduction of the problem with instructions
Open plnkr case http://plnkr.co/edit/FykwvAeH0BhdxZUiF6RG?p=preview
Run it
Open the calendar
Notice disabled dates
Click on "Click me" button (now all the disabled dates are cleared)
Notice that disabled dates are still in the calendar
Go to next month
Go back to this month
Notice that disabled dates disappeared only now

  • Angular version: 4.1.3
  • PrimeNG version: 4.1.0-RC2
  • Browser: all
  • Language: all
@eugenebuhor
Copy link

Same behavior.
Plunker Case: http://plnkr.co/edit/zI22N5Vknm8zMoNOeO46?p=preview

@cagataycivici cagataycivici self-assigned this Aug 23, 2017
@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Aug 23, 2017
@cagataycivici cagataycivici added this to the 4.1.4 milestone Aug 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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

3 participants