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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
sectionId |
SectionId |
Returns
Section titled “Returns”ReadonlyDeep<{ captureLastComponentBeforeTabpanel: HandleFocus; focusLastComponentBeforeTabpanel: HandleKeyboard; }>
captureLastComponentBeforeTabpanel Function that must be passed to the first tabbable component as a “focus” event handler.