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

Dynamic change of minDate and maxDate doesn't reflect on DatePicker popover #3506

Closed
arvindm95 opened this issue Dec 6, 2019 · 0 comments · Fixed by #3507
Closed

Dynamic change of minDate and maxDate doesn't reflect on DatePicker popover #3506

arvindm95 opened this issue Dec 6, 2019 · 0 comments · Fixed by #3507

Comments

@arvindm95
Copy link
Contributor

arvindm95 commented Dec 6, 2019

Bug description:

When datepicker is used in a popup, then dynamic changes to minDate and maxDate values doesn't reflect on the popup. But it works when the popup is closed and opened again.

Link to minimally-working StackBlitz that reproduces the issue:

https://stackblitz.com/edit/angular-zpsmfq

  1. Click on the toggle button as soon as the page loads.
  2. After 5 seconds, notice the maxDate/minDate change in the Datepicker on the right, but not in the one on the left side of the page.
  3. Close the toggle and open again, maxDate/minDate will be reflected now.

Versions of Angular, ng-bootstrap and Bootstrap:

Angular: 8.2.4

ng-bootstrap: 5.1.4

Bootstrap: 4.3.1

arvindm95 pushed a commit to arvindm95/ng-bootstrap that referenced this issue Dec 6, 2019
maxokorokov pushed a commit that referenced this issue Jan 27, 2020
Propagate minDate and maxDate changes dynamically from the input datepicker to the datepicker

Fixes: #3506
@maxokorokov maxokorokov added this to the 5.2.2 milestone Jan 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants