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

DatePicker: dynamically updating [maxDate] doesn't get applied immediately. #3438

Closed
dsuwirya opened this issue Oct 27, 2019 · 3 comments
Closed

Comments

@dsuwirya
Copy link

Hello,

I'm trying to put a limit on date range selection to max 30 days from the [fromDate] by dynamically recalculating and updating [maxDate] each time user changing the [fromDate]. It doesn't seem the update to [maxDate] gets applied immediately. But only get applied if first I close the popup, and reopen the popup.

Thanks.

@maxokorokov
Copy link
Member

@dsuwirya oops, missed this one. Could you please provide a StackBlitz, please?


Please take a look at the Getting Help section in documentation and use the appropriate support channel.

If you believe you've found a bug in this library then please:

  • fill in the issue template correctly
  • provide a minimal reproduction scenario in a StackBlitz

@stevethemacguy stevethemacguy mentioned this issue Feb 21, 2020
9 tasks
@stevethemacguy
Copy link

stevethemacguy commented Feb 21, 2020

I'm having a similar change detection issue with datepicker when building with IVY. I will submit a minimal repo on Monday. If I dynamically add a class to a custom dayTemplate, the class is not added in the HTML until I trigger change detection on the datepicker in some other way (e.g. by hovering over the calendar).

@maxokorokov
Copy link
Member

I think #3507 should have fixed this issue.
Please reopen if necessary and you have the StackBlitz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants