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
When I click the component ion-datetime, it opens the picker with the value set to the first day of the current year if max is not set. or the first day of the year of the value set to max.
Expected behavior:
Please provide a way to set the default value of the picker. In my case, I need to set a max value to ion-datetime and want to give a day as the start point for the user to pick a date. But with the current framework, that's impossible. Actually I have two ion-datetime for start date and end date. So when the user picks a start time, I want the default value for the picker for the end date to be the start date.
Steps to reproduce:
Related code:
insert any relevant code here
Other information:
Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):
insert the output from ionic info here
The text was updated successfully, but these errors were encountered:
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. 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.
Ionic version: (check one with "x")
[ ] 1.x (For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ x ] 2.x
[ x ] 3.x
I'm submitting a ... (check one with "x")
[ ] bug report
[ x ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
When I click the component ion-datetime, it opens the picker with the value set to the first day of the current year if max is not set. or the first day of the year of the value set to max.
Expected behavior:
Please provide a way to set the default value of the picker. In my case, I need to set a max value to ion-datetime and want to give a day as the start point for the user to pick a date. But with the current framework, that's impossible. Actually I have two ion-datetime for start date and end date. So when the user picks a start time, I want the default value for the picker for the end date to be the start date.
Steps to reproduce:
Related code:
Other information:
Ionic info: (run
ionic info
from a terminal/cmd prompt and paste output below):The text was updated successfully, but these errors were encountered: