Open yuezk opened 10 months ago
:focus-visible style is triggered when open a dialog from a dropdown menu using mouse.
:focus-visible
https://github.com/radix-ui/primitives/assets/3297602/54f67dbd-92bf-4dc5-a2aa-8f00f57585f8
If the dialog is not opened from the dropdown menu, the :focus-visible style won't be triggered.
The :focus-visible style should not be triggered.
The example is forked from https://github.com/radix-ui/primitives/issues/1836#issuecomment-1556688048
Any chance we could get a timeline on this?
Same here. It should use focus instead of focus-visible when the dialog is triggered without using the keyboard.
focus
focus-visible
Bug report
:focus-visible
style is triggered when open a dialog from a dropdown menu using mouse.Current Behavior
https://github.com/radix-ui/primitives/assets/3297602/54f67dbd-92bf-4dc5-a2aa-8f00f57585f8
If the dialog is not opened from the dropdown menu, the
:focus-visible
style won't be triggered.Expected behavior
The
:focus-visible
style should not be triggered.Reproducible example
The example is forked from https://github.com/radix-ui/primitives/issues/1836#issuecomment-1556688048
Suggested solution
Additional context
Your environment