Skip to content

default

default(sectionId): ReadonlyDeep<{ captureLastComponentBeforeTabpanel: HandleFocus; focusLastComponentBeforeTabpanel: HandleKeyboard; }>

Defined in: hooks/useLastComponentBeforeTabpanel.ts:78

Captures the last component that had focus before it moved to the tabpanel. Returns to that component when Shift+Tab is pressed while focused on the first tabbable element of the tabpanel.

Parameter Type
sectionId SectionId

ReadonlyDeep<{ captureLastComponentBeforeTabpanel: HandleFocus; focusLastComponentBeforeTabpanel: HandleKeyboard; }>

captureLastComponentBeforeTabpanel Function that must be passed to the first tabbable component as a “focus” event handler.