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: dropdown would close overlay when selecting text on filter #14990

Open
Foxandxss opened this issue Mar 8, 2024 · 0 comments
Open
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@Foxandxss
Copy link

Describe the bug

Using a dropdown (and the multiselect) with a filter.

Say you want to hightlight the text of the filter to copy it and you do it with the mouse. You click in the filter input and you drag your mouse until you reach the end of the input and instead of stopping the dragging in the input itself, you unpress the button outside of it. If you do that the overlay will close and you will lose the highlight.

Related to #7515

Environment

Happens on the docs itself.

Reproducer

https://primeng.org/dropdown#filterbasic

Angular version

17.0.0

PrimeNG version

17.10.0

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

20.0.0

Browser(s)

Chrome

Steps to reproduce the behavior

Open the demo page. Dropdown -> filter. Type something, click with the mouse at the end of the string, hold to select and unpress the button outside the overlay. It will close

Expected behavior

Dropdown should remain open after clicking outside if there is selected text

@Foxandxss Foxandxss added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

1 participant