feat(SW-184): my pages menu mobile/desktop functionality
This commit is contained in:
@@ -44,6 +44,7 @@ export function useTrapFocus(opts?: OptionsType) {
|
||||
const { code, shiftKey } = event
|
||||
const first = tabbableElements[0]
|
||||
const last = tabbableElements[tabbableElements.length - 1]
|
||||
|
||||
const currentActiveElement = document.activeElement
|
||||
// Scope current tabs to current root element
|
||||
if (isWithinCurrentElementScope([...tabbableElements, ref.current])) {
|
||||
|
||||
Reference in New Issue
Block a user