primereact icon indicating copy to clipboard operation
primereact copied to clipboard

TreeSelect: Clicking outside of the dropdown returns focus to the component input

Open otudosa opened this issue 4 months ago • 0 comments

Describe the bug

When clicking outside of the dropdown, the focus returns back to the TreeSelect input, even though another focusable component was clicked.

Reproducer

No response

System Information

primeareact: "10.9.7"
react: "19.1.0"

Steps to reproduce the behavior

  • Navigate to the TreeSelect component documentation page.
  • In any section that shows multiple TreeSelects, click the first TreeSelect to open its dropdown.
  • Without closing the first, click a second TreeSelect to open its dropdown.

https://github.com/user-attachments/assets/83228ea1-3c5c-43da-b2b8-689173e7718e

Expected behavior

When clicking outside of the dropdown, the expected behaviour is for the component to lose focus, similar to the dropdown component.

otudosa avatar Sep 01 '25 06:09 otudosa