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

BsDatePicker is unusable if minDate/maxDate range doesn't include current month. #2711

Closed
chubbard opened this issue Sep 22, 2017 · 4 comments · Fixed by #3129
Closed

BsDatePicker is unusable if minDate/maxDate range doesn't include current month. #2711

chubbard opened this issue Sep 22, 2017 · 4 comments · Fixed by #3129

Comments

@chubbard
Copy link

If you set the minDate and maxDate to a date range that doesn't overlap with the current month (for example, a birthday for which you must be 18 or older) you can't scroll back to the valid date range because scrolling between months is disabled. I think there are 2 issues to consider. One that the months scrolls are disabled if you are in months that aren't included in the date range which renders the controls unusable. However, a related issue is that when the control is opened it defaults to show the current month instead of something in the date range, and there are no configuration settings for setting what date to start by default.

@NenadJovicic
Copy link

you can create some selectedDate that is in your range and bind it with ngModel into datepicker
automatically, when you select some date, it will be binded to your selectedDate
only problem here is if you don't want to have selected date on start

@chubbard
Copy link
Author

That IS exactly the problem. I need it to be empty to start. They are picking a birthday so there is no good default here.

@valorkin
Copy link
Member

valorkin commented Oct 2, 2017

@chubbard view date is in the roadmap

@SidekickJohn
Copy link

@valorkin any news on this one?

@valorkin valorkin added this to the v2.0.0 milestone Nov 21, 2017
valorkin added a commit that referenced this issue Nov 28, 2017
if no date is selected and min or max dates are excluding current month
show minimal or maximal provided date

fixes #3123 fixes #2711
@ghost ghost assigned valorkin Nov 28, 2017
@ghost ghost added the in progress label Nov 28, 2017
valorkin added a commit that referenced this issue Nov 28, 2017
if no date is selected and min or max dates are excluding current month
show minimal or maximal provided date

fixes #3123 fixes #2711
valorkin added a commit that referenced this issue Nov 28, 2017
if no date is selected and min or max dates are excluding current month
show minimal or maximal provided date

fixes #3123 fixes #2711
valorkin added a commit that referenced this issue Nov 28, 2017
if no date is selected and min or max dates are excluding current month
show minimal or maximal provided date

fixes #3123 fixes #2711
@ghost ghost removed the in progress label Nov 28, 2017
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.

5 participants