-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Closed
Milestone
Description
Short description of the problem:
Add displayFormat
or pickerFormat
attribute led to:
- miss day column in picker and don't fill the day in display.
- if pickerFormat is YYYY and displayFormat is not defined, display value show ,YYYY
Add max
attribute with a date less than current date lead to
- Miss month & year column in picker if
max attr value less then (current date - 101)
- Miss month column in picker if
max attr value less then current date & greater then (current date - 100)
After scroll in picker or select a date, missed column appear.
Add min
attribute lead to:
- Miss month & year column in picker if
min attr value greater then current year
- Miss month column in picker if
min attr value is today, yesterday or tomorrow
. After scroll in picker or select a date, missed column appear.
What behavior are you expecting?
- Set any valid format to displayFormat or pickerFormat must not break the component
- If pickerFormat is defined and displayFormat is not defined, displayFormat should be set to same format as pickerFormat
- If max attr value is defined, min attr value is not defined and max attr value is less then default minimum value (current date - 100 years), then min value should be set to the year of defined max value attr to avoid issues
- If in attr value is defined, max attr value is not defined and in attr value is greater then default maximum value (current year), then max value should be set to the year of defined min value attr to avoid issues
Other information:
Tested in chrome
Which Ionic Version? 1.x or 2.x
2 RC1
Plunker that shows an example of your issue
Run ionic info
from terminal/cmd prompt: (paste output below)
Cordova CLI: 6.3.1
Gulp version: CLI version 3.9.1
Gulp local:
Ionic Framework Version: 2.0.0-rc.1
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.1.0-beta.1
OS: Distributor ID: Debian Description: Debian GNU/Linux 8.6 (jessie)
Node Version: v6.6.0
Metadata
Metadata
Assignees
Labels
No labels