Skip to content
Bug reportNov 30, 2026· 0:21· 7 views

Radix Dialog: Shift+Tab from RadioGroup doesn't wrap to Submit (FocusScope + RovingFocusGroup timing bug)

0:21 total

Comments · 0

Be the first to comment.

Bug reportby SceneRecap AI

mediumFocusScope loop/trap handling of Shift+Tab when the first tabbable is a RovingFocusGroup (RadioGroup) item inside Dialog. Possibly a timing conflict between the RovingFocusGroup tabindex update and the FocusScope edge detection.
os: macOSdpr: 1page: Radix Dialog: Shift+Tab wrap regression (radix-ui/primitives#4313)locale: en-USbrowser: Chromium 151.0.7922.34timezone: Europe/Berlinviewport: 1280x720

Repro steps

  1. 1.Open the Report reason dialog. Focus starts on the first radio, Incorrect information. The focus panel reads Reason.
  2. 2.Press Tab four times to cycle forward through Notes, Cancel and Submit.
  3. 3.Confirm the fourth Tab from Submit wraps focus back to the radio group.
  4. 4.With focus on the radio group, press Shift+Tab.
  5. 5.Press Shift+Tab a second time.

Expected

Shift+Tab from the first focusable element, the radio group, should wrap focus backward to the last focusable element, Submit. This would match the documented tab order radio-a, Notes, Cancel, Submit, (wraps).

Actual

Focus stays on the radio group, Incorrect information, after both Shift+Tab presses. The focus panel keeps reading Reason. The Submit button never receives focus.

Evidence

visualInitial state: focus ring on the Incorrect information radio. Focus panel reads Reason, with tab order radio-a, Notes, Cancel, Submit, (wraps).
visualControl: forward Tab works. Focus panel shows Notes (textarea) after the Tab at 8.6s.
visualControl: forward Tab works. Focus panel shows Submit (button) with a focus ring on Submit.
visualControl: forward wrap works. The fourth Tab, at 11.7s, from Submit returns focus to the radio group. Focus panel reads Reason.
visualAfter Shift+Tab at 13.6s, focus is still on Incorrect information. Focus panel still reads Reason. Submit has no focus ring.
visualAfter the second Shift+Tab at 16.2s, focus is still on the radio group. Focus panel reads Reason.
visualFocus remains on Reason through the end of the recording. Backward wrap never happens.
Issue markdown (copy-paste ready)
## Summary
In a Radix Dialog whose first focusable element is a RadioGroup, Shift+Tab from the radio group does not wrap focus to the last focusable element (Submit). Forward Tab wrapping works correctly.

## Environment
- Browser: Chromium 151.0.7922.34
- OS: macOS
- Viewport: 1280x720, DPR 1
- Locale: en-US, timezone Europe/Berlin
- Page: Radix Dialog: Shift+Tab wrap regression (radix-ui/primitives#4313)

## Steps to reproduce
1. Open the Report reason dialog. Focus starts on the Incorrect information radio (1.0s).
2. Press Tab four times (8.6s, 9.6s, 10.5s, 11.7s). Focus moves through Notes, Cancel and Submit, then wraps to the radio group.
3. Press Shift+Tab (13.6s).
4. Press Shift+Tab again (16.2s).

## Expected
Shift+Tab from the radio group wraps focus backward to Submit. This would match the tab order radio-a, Notes, Cancel, Submit, (wraps).

## Actual
Focus stays on the radio group (Incorrect information) after both Shift+Tab presses. The focus panel keeps reading Reason through the end of the recording (20.9s).

## Control (works)
- Forward Tab moves focus to Notes (9.0s) and to Submit (11.0s).
- Forward Tab from Submit wraps back to the radio group (13.0s).

## Evidence
- 1.0s: focus ring on Incorrect information. Panel reads Reason.
- 9.0s: panel reads Notes (textarea).
- 11.0s: panel reads Submit (button).
- 13.0s: panel reads Reason after the forward wrap.
- 15.0s: panel still reads Reason after Shift+Tab at 13.6s.
- 17.0s: panel still reads Reason after Shift+Tab at 16.2s.
- 20.9s: panel still reads Reason.

No console or network data was captured.

## Suspected area
FocusScope loop handling for Shift+Tab when the first tabbable is a RovingFocusGroup (RadioGroup) item. Possibly a timing interaction between the roving tabindex management and FocusScope's first/last edge detection.

*Recorded with SceneRecap.*

This report was written by SceneRecap from a screen recording. Try SceneRecap free

Turn a screen recording into a bug report like this one.

Repro steps, expected vs actual and the console and network evidence, each with a timestamp. On every plan, Free included.

Try SceneRecap free →