Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 161478b

Browse files
committed
fix: use aria-hidden types
1 parent b027c4b commit 161478b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/c-modal/src/use-modal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ export function useModal(options: UseModalOptions) {
243243
/**
244244
* `aria-hidden` attributes handling
245245
*/
246-
const shouldHide = computed(() => isOpen.value && useInert?.value)
246+
const shouldHide = computed(() => (isOpen.value && useInert?.value) || false)
247247
useAriaHidden(dialogRefEl, shouldHide)
248248

249249
return {

0 commit comments

Comments
 (0)