-
Notifications
You must be signed in to change notification settings - Fork 160
Closed
Labels
🐛 bugAny issue that describes a bugAny issue that describes a bug📅 date-pickerseverity: lowversion: 9.1.x
Description
Description
When the mode option is changed to dropdown after control init, the picker applies a mask that's not a date (the igxMask default)
- igniteui-angular version: 9.0.x
- browser: N/A
Steps to reproduce
- Open https://stackblitz.com/edit/datepicker-mode-switch
- Change the mode from the select
- Focus the input
Result
The editor displays the date correctly as "5/15/19", but when you focus there's no value and the placeholder shows the underlying mask as "CCCCCCC..":

Also if you clear the editor and focus again, the picker throws a parsing error:
Expected result
The editor should work the same as if mode="dropdown" has been assigned intially, formatting the date as "_5/15/2019" when focused and display an empty mask (__/__/____) for cleared.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
🐛 bugAny issue that describes a bugAny issue that describes a bug📅 date-pickerseverity: lowversion: 9.1.x
