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

bug: ion-datetime does not respect max/min value #12070

Closed
howdoesthisthingwork opened this issue Jun 16, 2017 · 3 comments
Closed

bug: ion-datetime does not respect max/min value #12070

howdoesthisthingwork opened this issue Jun 16, 2017 · 3 comments

Comments

@howdoesthisthingwork
Copy link

howdoesthisthingwork commented Jun 16, 2017

Type: bug

Ionic Version: 2.x

Platform: all

Summary
During date selection, this specific scenario allows user to select dates past the maximum date set by option, and also allows selection of Non-existent dates like September 31.

Also occurs with allowing selection of dates before minimum dates.

Steps to Reproduce

Go to:
https://ionicframework.com/docs/api/components/datetime/DateTime/

  1. Select the Firefox date.
  2. Chose August 31, 2002.
  3. Hit Done.
  4. Open date picker again.
  5. Without touching anything else, change month to September.

Date will show September 31. even though September only has 30 days. Allows save.

Other scenarios
There are multiple scenarios that lead to similar problems:
Scenario 1:

  1. Select September 30.
  2. Click done.
  3. Open and change month to October.
  4. October 31 does not show up as an option. In order to get it to show up, user must first cause some other change event on the date, like selecting October 29, and then October 31 will show as an option.

Scenario 2:

  1. Set a min date in options in html. i.e. 6/15/2017.
  2. Open datepicker. Select 7/1/2017.
  3. Hit done.
  4. Open datepicker. Change month to June. The 1 will remain so date will be 6/1. Hit done.

Datepicker allows June 1 to be saved.

@jgw96
Copy link
Contributor

jgw96 commented Jun 19, 2017

Thanks for opening an issue with us, we will look into this.

@lpsantana
Copy link

Any news on this?

@ionitron-bot
Copy link

ionitron-bot bot commented Jun 26, 2018

Thanks for the issue! This issue is being closed due to inactivity. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

Thank you for using Ionic!

@ionitron-bot ionitron-bot bot closed this as completed Jun 26, 2018
@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Jun 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants