Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Date picker applies non-date mask when dropdown mode is set after init #6749

Closed
damyanpetev opened this issue Feb 17, 2020 · 7 comments · Fixed by #9160
Closed

Date picker applies non-date mask when dropdown mode is set after init #6749

damyanpetev opened this issue Feb 17, 2020 · 7 comments · Fixed by #9160
Assignees

Comments

@damyanpetev
Copy link
Member

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

  1. Open https://stackblitz.com/edit/datepicker-mode-switch
  2. Change the mode from the select
  3. 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..":
image

Also if you clear the editor and focus again, the picker throws a parsing error:

image

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.

@github-actions
Copy link

github-actions bot commented May 9, 2020

There has been no recent activity and this issue has been marked inactive.

@github-actions github-actions bot added the status: inactive Used to stale issues and pull requests label May 9, 2020
@Lipata Lipata removed the status: inactive Used to stale issues and pull requests label May 18, 2020
@Lipata Lipata reopened this May 18, 2020
@github-actions
Copy link

There has been no recent activity and this issue has been marked inactive.

@github-actions github-actions bot added the status: inactive Used to stale issues and pull requests label Jul 18, 2020
@Lipata Lipata removed the status: inactive Used to stale issues and pull requests label Jul 19, 2020
@github-actions
Copy link

There has been no recent activity and this issue has been marked inactive.

@github-actions github-actions bot added the status: inactive Used to stale issues and pull requests label Sep 18, 2020
@Lipata Lipata removed the status: inactive Used to stale issues and pull requests label Sep 18, 2020
@github-actions
Copy link

There has been no recent activity and this issue has been marked inactive.

@github-actions github-actions bot added the status: inactive Used to stale issues and pull requests label Nov 18, 2020
@Lipata Lipata removed the status: inactive Used to stale issues and pull requests label Nov 18, 2020
@jackofdiamond5
Copy link
Member

The issue will be tackled in #6483

@github-actions
Copy link

There has been no recent activity and this issue has been marked inactive.

@github-actions github-actions bot added the status: inactive Used to stale issues and pull requests label Jan 25, 2021
@jackofdiamond5 jackofdiamond5 removed the status: inactive Used to stale issues and pull requests label Jan 25, 2021
@github-actions
Copy link

There has been no recent activity and this issue has been marked inactive.

@github-actions github-actions bot added the status: inactive Used to stale issues and pull requests label Mar 27, 2021
@Lipata Lipata removed the status: inactive Used to stale issues and pull requests label Mar 29, 2021
@Lipata Lipata mentioned this issue Apr 14, 2021
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants