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
Current behavior:
The datetime picker's default time is now, even if the min attribute is in the future.
It is still possible to set the default value manually, by setting [value] = min_time, but one would expect the default value cannot be lower than the min time.
Expected behavior:
The default time should not be lower than the min datetime. It should correspond to the min datetime if the min datetime is in the future.
Steps to reproduce:
Create a ion-datetime component. Set its min attribute in the future (example '2022-05-16T18:20:00Z' if testing on 2022-05-16T18:05:00Z). Observe the datetime picker (currently selected on date = today and time = now):
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:
[] 4.x
[] 5.x
[x] 6.x
I'm submitting a ...
[x] bug report
[ ] feature request
Current behavior:
The datetime picker's default time is now, even if the min attribute is in the future.
It is still possible to set the default value manually, by setting
[value] = min_time
, but one would expect the default value cannot be lower than the min time.Expected behavior:
The default time should not be lower than the min datetime. It should correspond to the min datetime if the min datetime is in the future.
Steps to reproduce:
Create a ion-datetime component. Set its min attribute in the future (example '2022-05-16T18:20:00Z' if testing on 2022-05-16T18:05:00Z). Observe the datetime picker (currently selected on date = today and time = now):
Related code:
Ionic info:
The text was updated successfully, but these errors were encountered: