primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Dropdown: onBlur event is emitted when the user clicks the dropdown arrow

Open gpobr opened this issue 1 year ago • 0 comments

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

  1. Set a dropdown to autofocus
  2. Add an onBlur event emitter
  3. 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.

gpobr avatar Jun 06 '24 08:06 gpobr