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
I'm submitting a ... (check one with "x")
[x] bug report
[x] feature request
Current behavior:
If max attribute specified into future for example "2020-12-31" the date picker would display:
Day: {1}
Month: {unselected but list starts with today's month, currently March}
Year - {the max one, for this example 2020}.
If I scroll the year to 2019 and back to 2020 all 12 months are shown as expected.
Expected behavior:
Regards bug: I expect either max year with all 12 months (or up to the last allowed by max) or a current year to be selected by default (or first allowed by min property)
Regards feature request: I suggest we have additional property defaultValue.
Reasoning: I want some of my date fields to be optional so I can't fill the value before the picker clicked but once user opens drop down I want a specific date to be preselected, specifically I need today or tomorrow but could be any arbitrary date. Also for optional fields would be nice to have some way to clear the field from previously entered value.
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")
[x] 2.x
I'm submitting a ... (check one with "x")
[x] bug report
[x] feature request
Current behavior:
If
max
attribute specified into future for example "2020-12-31" the date picker would display:If I scroll the year to 2019 and back to 2020 all 12 months are shown as expected.
Expected behavior:
Regards bug: I expect either max year with all 12 months (or up to the last allowed by max) or a current year to be selected by default (or first allowed by min property)
Regards feature request: I suggest we have additional property defaultValue.
Reasoning: I want some of my date fields to be optional so I can't fill the value before the picker clicked but once user opens drop down I want a specific date to be preselected, specifically I need today or tomorrow but could be any arbitrary date. Also for optional fields would be nice to have some way to clear the field from previously entered value.
Steps to reproduce:
See plunker: http://plnkr.co/edit/H7eMFjSDrj8VbsUo0bDW?p=preview
Related code:
Ionic info: (run
ionic info
from a terminal/cmd prompt and paste output below):The text was updated successfully, but these errors were encountered: