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

the config option preventChangeToNextMonth: true should also work for datepicker-inline #6685

Open
aleksander351 opened this issue Sep 19, 2024 · 2 comments

Comments

@aleksander351
Copy link

aleksander351 commented Sep 19, 2024

Is your feature request related to a problem? Please describe.

the config option preventChangeToNextMonth: true should also work for datepicker-inline, the same as daterangepicker-inline. Since it is possible to set displayMonths in the datepicker-inline to more than one.

Describe the solution you'd like

If we set preventChangeToNextMonth: true in the config of <bs-datepicker-inline> it should behave the same as <daterangepicker-inline>

Right now it doesn't prevent the Calendar from jumping to the next month.

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

Additional context

Add any other context or screenshots about the feature request here.

@daniloff200
Copy link
Contributor

I don't think, that it should work like that.
The preventChangeToNextMonth was a param only for dateRangePicker, at least, when it was developed.

But, my opinion can be kinda outdated, because it's almost 3 years since I'm not working with ngx-bootstrap anymore, so, maybe somebody from the team has some other ideas

@aleksander351
Copy link
Author

Like I said, if you have the displayMonths option, to be more than 1 for the inline picker, it also makes sense to have the preventChangeToNextMonth option. The reasons are the same as for the date range control.

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

2 participants