Skip to content

Commit e517f0e

Browse files
authored
Merge pull request #32 from a21y/master
fix: Target <Motion> component's $el for focus fallback
2 parents 4c38bf3 + 93fa20e commit e517f0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vue-spring-bottom-sheet/src/BottomSheet.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ const isWindowRootScrollLocked = useScrollLock(document.documentElement)
105105
106106
const focusTrap = useFocusTrap([sheet, backdrop], {
107107
immediate: false,
108-
fallbackFocus: () => sheet.value || document.body,
108+
fallbackFocus: () => sheet.value?.$el || document.body,
109109
})
110110
111111
function handleTouchMove(event: TouchEvent) {

0 commit comments

Comments
 (0)