Dropdown: dropdown would close overlay when selecting text on filter #14990
Labels
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
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
The text was updated successfully, but these errors were encountered: