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 displayed value not updated on blur #2826

Closed
saithis opened this issue May 19, 2017 · 1 comment
Closed

Calendar displayed value not updated on blur #2826

saithis opened this issue May 19, 2017 · 1 comment
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@saithis
Copy link

saithis commented May 19, 2017

I'm submitting a ... (check one with "x")

[x] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Plunkr Case (Bug Reports)
Counldn't get the p-calendar to work in plunkr at all, but the bug is also in your demo page:
https://www.primefaces.org/primeng/#/calendar

Current behavior
When you type something that isnt a date like 'asdf' into an empty p-calendar and press tab (or click somewhere else, so the p-calendar input looses focus), then the input isn't cleared.

Expected behavior
The clearing of the input should work.

Minimal reproduction of the problem with instructions

  1. open https://www.primefaces.org/primeng/#/calendar
  2. type 'asdf' into the Basic p-calendar (the p-calendar mustn't have a value selected before doing this)
  3. hit tab
  4. 'asdf' doesn't get cleared, as inputFieldValue didn't change

What is the motivation / use case for changing the behavior?
Because it is a bug. Also with the ultima layout the label will then be over the typed in text.

  • Angular version: 2.4.X and 4.0.X

  • PrimeNG version: 2.0.5 and the one on your demo page

@cagataycivici cagataycivici added the Status: Pending Review Issue or pull request is being reviewed by Core Team label Jun 23, 2017
@cagataycivici cagataycivici self-assigned this Jun 23, 2017
@cagataycivici cagataycivici added this to the 4.1.0 milestone Jun 23, 2017
@cagataycivici
Copy link
Member

Review for 4.1.0.

@cagataycivici cagataycivici added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Pending Review Issue or pull request is being reviewed by Core Team labels Jun 29, 2017
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