primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Calander - Prevent onFocus and onBlur when selecting an item

Open MosheMoualem opened this issue 8 years ago • 2 comments

If you have a PrimeNG PRO Support subscription please post your issue at;

https://pro.primefaces.org

where our team will respond within 4 business hours.

If you do not have a PrimeNG PRO Support subscription, fill-in the report below. Please note that your issue will be added to the waiting list of community issues and will be reviewed on a first-come first-serve basis, as a result, the support team is unable to guarantee a specific schedule on when it will be reviewed. Thank you for your understanding.

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) Please fork the plunkr below and create a case demonstrating your bug report. Issues without a plunkr have much less possibility to be reviewed.

http://plnkr.co/edit/qtZi5lB3DjkNt7Kdivg9?p=preview

Current behavior

onFocus and onBlur incorrectly being invoked when using the mouse to select an item from the calander modal. This is incorrect because although a focus and blur actually occur, the user does not perceive it. The Calander internals ensure focus is restored after the user has clicked outside the to select the item. Expected behavior

Prevent onFocus and onBlur when selecting an item Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

  • Angular version: 5.2.0
  • PrimeNG version: 5.2.0
  • Browser: Chrome
  • Language: [all]

  • Node (for AoT issues): node --version =

MosheMoualem avatar Mar 22 '18 09:03 MosheMoualem

as an suggestion for solution - you can put focus on the input element upon selection.

MosheMoualem avatar Mar 22 '18 12:03 MosheMoualem

I think current behavior is the correct one.

cagataycivici avatar Aug 12 '18 08:08 cagataycivici