Skip to content

[IgxDatePicker] Day part becomes NaN after clearing the value and hit down arrow key at the day part. #8567

@norikois

Description

@norikois

Description

[IgxDatePicker] Day part becomes NaN after clearing the value and hit down arrow key at the day part.

  • igniteui-angular version: 10.2.3
  • browser: Chrome

Steps to reproduce

  1. Open the attached sample in a browser.
  2. Click "x" button to clear the value.
  3. Click the day part of the mask.
  4. Hit down arrow key.

Result

"NaN" is displayed in the day part.

Expected result

"NaN" is not displayed.
This can be a discussion about to what value the day part should decrement when its value is minimum. It's undefined unless the year and the month are fixed. One option could be "not to wrap and to stop spinning". Another option could be "to wrap to 31 for the time being and to adjust the day value when the editor exits edit mode."

Attachments

cas33657-app1.zip

cas33657-app1-movie.zip

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions