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

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

Closed
gpobr opened this issue Jun 6, 2024 · 1 comment · Fixed by #16023 · 4 remaining pull requests
Closed

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

gpobr opened this issue Jun 6, 2024 · 1 comment · Fixed by #16023 · 4 remaining pull requests
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@gpobr
Copy link

gpobr commented Jun 6, 2024

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 gpobr added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jun 6, 2024
@mehmetcetin01140 mehmetcetin01140 added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Jun 6, 2024
@mehmetcetin01140 mehmetcetin01140 added this to the 17.18.1 milestone Jun 6, 2024
@cetincakiroglu cetincakiroglu modified the milestones: 17.18.1, 17.18.2 Jun 13, 2024
@mehmetcetin01140 mehmetcetin01140 modified the milestones: 17.18.2, 17.18.3, 17.18.4 Jun 27, 2024
@mehmetcetin01140 mehmetcetin01140 modified the milestones: 17.18.4, 17.18.5 Jul 11, 2024
@mehmetcetin01140 mehmetcetin01140 modified the milestones: 17.18.5, 17.18.6 Jul 18, 2024
@puschie286
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment