Replies: 1 comment 1 reply
-
It looks like the I understand these were not public interfaces to begin with. However, the focus management hooks were very useful - for the exact reasons stated by OP. I was using it to get a list of all focusable elements in a container, to build my own custom control/component that needed to manage focus. In my case, I need to set the initial focus on an element when the component is mounted. It's not exactly a Dialog, so I don't want to trap the focus. Moving the focus will simply allow for better keyboard navigation. I was using the |
Beta Was this translation helpful? Give feedback.
-
I think it's a bit unfair that these very useful utilities are buried under a long import, especially when it requires configuration overrides to use. If someone wants to make a multi-select box, or a tree view, or something else that Headless UI currently doesn't support yet, having the focus management utilities available would be a big help and would make it a bit more difficult to accidentally reinvent the wheel.
Alternatively, you could move this focus management stuff into another package for all to use. It's really useful!
Beta Was this translation helpful? Give feedback.
All reactions