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

Fixed #14917 - Dropdown | Clicking on currently selected item no long… #14920

Merged
merged 2 commits into from
Mar 6, 2024

Conversation

mehmetcetin01140
Copy link
Contributor

Fixes #14917

Copy link

vercel bot commented Mar 1, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
primeng ⬜️ Ignored (Inspect) Visit Preview Mar 6, 2024 8:59am

preventChange === false && this.onChange.emit({ originalEvent: event, value: value });
}
isHide && setTimeout(() => this.hide(true), 1);
Copy link
Contributor

@SoyDiego SoyDiego Mar 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @mehmetcetin01140 I think you can remove the setTimeout and the code will be cleaner.
Using this lines works perfectly:

if (isHide) {
   this.hide(true);
}

Here you have a repro:

fixed

@cetincakiroglu cetincakiroglu merged commit 6150c2c into master Mar 6, 2024
3 checks passed
@cetincakiroglu cetincakiroglu deleted the issue-14917 branch March 20, 2024 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dropdown: Clicking on currently selected item no longer closes the list
3 participants