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

Calendar manual input not working properly #1712

Closed
alqa-dash opened this issue Oct 28, 2021 · 2 comments
Closed

Calendar manual input not working properly #1712

alqa-dash opened this issue Oct 28, 2021 · 2 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@alqa-dash
Copy link

Calendar component cleans up date manually typed when dateFormat is applied. It looks like this: when one typed last digit of date - date disappears. If date pasted - everything is ok.

Steps to reproduce:

  1. Open page https://primefaces.org/primevue/showcase/#/calendar with latest version
  2. Open codesandbox sample (in my case it was composition api). Primevue was 3.8.2
  3. Add dateFormat="yy-mm-dd" to the first Calendar element
  4. Tried to enter date manually (e.g. 1980-01-01, 2020-10-10, etc)
@cagataycivici cagataycivici self-assigned this Nov 17, 2021
@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Nov 17, 2021
@cagataycivici cagataycivici modified the milestone: 3.9.0 Nov 17, 2021
@cagataycivici cagataycivici removed the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Nov 17, 2021
@cagataycivici cagataycivici removed their assignment Nov 17, 2021
@cagataycivici
Copy link
Member

This is expected, set keepInvalid to true, to avoid clearing non date values.

@cagataycivici cagataycivici changed the title Calendar manual input failed 2nd attempt Calendar manual input not working properly Nov 17, 2021
@cagataycivici cagataycivici self-assigned this Nov 17, 2021
@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Nov 17, 2021
@cagataycivici cagataycivici added this to the 3.9.0 milestone Nov 17, 2021
@cagataycivici
Copy link
Member

My bad, there are some issues which are fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

3 participants