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

fix(datepicker): config not applied #4698

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

zxanderh
Copy link

@zxanderh zxanderh commented May 14, 2024

Note that the proposed fix for #4697 will not resolve the issue when NgbDatepicker.navigateTo() is called manually, only when it is called by setting the [startDate] input. It seems reasonable to expect users not to call functions on components before they're initialized, so I believe this fix to be sufficient. That said, I'm more than happy to hear any feedback.

Fixes #4697
Fixes #3848

Zane Huston added 2 commits May 14, 2024 08:38
Global config is not applied to datepicker if startDate is set before ngOnInit is called.

Fixes ng-bootstrap#4697
NgbInputDatepickerConfig does not affect child datepicker because NgbInputDatepicker does not confer its injector

Fixes ng-bootstrap#3848
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant