primeng
primeng copied to clipboard
Dropdown: onBlur event is emitted when the user clicks the dropdown arrow
Describe the bug
When the user clicks the expand arrow in a focused dropdown, the blur event is emitted.
Environment
Windows 11
Reproducer
https://stackblitz.com/edit/hhqsns?file=src%2Fapp%2Fdropdown-basic-demo.html
Angular version
17.1.2
PrimeNG version
17.18
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
20.9.0
Browser(s)
No response
Steps to reproduce the behavior
- Set a dropdown to autofocus
- Add an onBlur event emitter
- While the dropdown is focused, click on the dropdown arrow
Expected behavior
The blur event should be emitted only when the user clicks outside the dropdown element. The dropdown arrow is part of the dropdown.