You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using Listbox component of headlessui, in simple words, when I click on Listbox.Button which is used to open Listbox.Options, the focus will be moved to Listbox.Options programmatically, but At this time, the mouse is still on Listbox.Button, which will trigger the onBlur event defined by useFocus, causing the ToolTip to disappear. As the mouse continues to move on Listbox.Button, the ToolTip will reappear until the mouse leaves the ToolTip.
This is weird, I hope to be able to add logic similar to the following to useFocus:
A new option for useFocus can be introduced to solve this issue. If you are willing to provide information on how to name and default value for this option, I would be happy to open a PR for this.
To Reproduce
Screenshots
reprod.mp4
Expected behavior
Screenshots
hope.mp4
Context:
OS: Windows 11
Browser: Chrome@121.0.6167.161
Version "@floating-ui/react": "^0.26.7",
The text was updated successfully, but these errors were encountered:
Describe the bug
I am using
Listbox
component ofheadlessui
, in simple words, when I click onListbox.Button
which is used to openListbox.Options
, the focus will be moved toListbox.Options
programmatically, but At this time, the mouse is still onListbox.Button
, which will trigger theonBlur
event defined byuseFocus
, causing the ToolTip to disappear. As the mouse continues to move onListbox.Button
, the ToolTip will reappear until the mouse leaves the ToolTip.This is weird, I hope to be able to add logic similar to the following to
useFocus
:A new option for useFocus can be introduced to solve this issue. If you are willing to provide information on how to name and default value for this option, I would be happy to open a PR for this.
To Reproduce
Screenshots
reprod.mp4
Expected behavior
Screenshots
hope.mp4
Context:
The text was updated successfully, but these errors were encountered: