You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
npm i -g ionic@rc
ionic start myApp blank --type=angular
cd myApp
ionic serve --livereload
Paste the following code into within the ion-content tags of src/app/pages/home/home.page.html
Chose August 31, 2018.
Hit Done.
Open date picker again.
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:
Select September 30.
Click done.
Open and change month to October.
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:
Set a min date in options in html. i.e. 6/15/2017.
Open datepicker. Select 7/1/2017.
Hit done.
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.
Related Code <ion-datetime></ion-datetime> Expected Behavior
Don't allow invalid dates to be entered.
Additional Context
This is an exact duplicate of #12070 which was closed without any investigation.
The text was updated successfully, but these errors were encountered:
Thanks for the issue! I’ve added this to issue #16630 to keep track of. We’re going to close out the individual issues and address all of the Datetime issues at once. We’re not forgetting about your issue, just trying to keep them all together.
Bug Report
Ionic Info
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
Paste the following code into within the
ion-content
tags ofsrc/app/pages/home/home.page.html
Save the file
Chose August 31, 2018.
Hit Done.
Open date picker again.
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:
Select September 30.
Click done.
Open and change month to October.
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:
Set a min date in options in html. i.e. 6/15/2017.
Open datepicker. Select 7/1/2017.
Hit done.
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.
Related Code
<ion-datetime></ion-datetime>
Expected Behavior
Don't allow invalid dates to be entered.
Additional Context
This is an exact duplicate of #12070 which was closed without any investigation.
The text was updated successfully, but these errors were encountered: