Modal popover focus trap fails with single tab stop (e.g. radio group)
triage
### Description
When a modal popover contains only a radio group (or any content with a single tab stop due to roving tabindex), pressing Tab causes focus to escape the popover to the browser URL bar.
The modal prop documentation states "focus is trapped within the popover", so focus should cycle within the popoverregardless of the number of tab stops.
### Link to Reproduction (or Detailed Explanation)
https://stackblitz.com/edit/u6cb4jhs?file=src%2FApp.vue&showSidebar=0
### Steps to Reproduce
1. Click "Sort by" to open the popover
2. Press Tab
**Expected:** Focus stays trapped within the popover content
**Actual:** Focus escapes to the browser URL bar
**Notes:**
- The radio group uses roving tabindex, so it presents as a single tab stop
- Adding a second focusable element (e.g. a button) inside the popover makes the focus trap work correctly
- The issue likely applies to any modal popover content with only one tab stop
### Ark UI Version
latest
### Framework
- [ ] React
- [ ] Solid
- [x] Vue
- [ ] Svelte
### Browser
Chrome
### Additional Information
_No response_
0 条评论