Skip to content

Commit 93fa20e

Browse files
authored
Update BottomSheet.vue
1 parent da36cf2 commit 93fa20e

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.$el || document.body,
108+
fallbackFocus: () => sheet.value?.$el || document.body,
109109
})
110110
111111
function handleTouchMove(event: TouchEvent) {

0 commit comments

Comments
 (0)