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 does not inherit config if startDate is set before ngOnInit is called. #4697

Open
zxanderh opened this issue May 13, 2024 · 0 comments · May be fixed by #4698
Open

Datepicker does not inherit config if startDate is set before ngOnInit is called. #4697

zxanderh opened this issue May 13, 2024 · 0 comments · May be fixed by #4698

Comments

@zxanderh
Copy link

Bug description:

If NgbDatepicker.navigateTo() is called (either manually, or by binding the [startDate] input) before the datepicker's ngOnInit() is called, then the datepicker will not inherit values from NgbDatepickerConfig.

Likely related to issue #3848.

Link to minimally-working StackBlitz that reproduces the issue:

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

Versions of Angular, ng-bootstrap and Bootstrap:

I put the versions we're using, but from what I can tell, this bug has likely existed for quite some time.

Angular: 14

ng-bootstrap: 13

Bootstrap: 5

zxanderh pushed a commit to zxanderh/ng-bootstrap that referenced this issue May 14, 2024
Global config is not applied to datepicker if startDate is set before ngOnInit is called.

Fixes ng-bootstrap#4697
@zxanderh zxanderh linked a pull request May 14, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant