Skip to content

Commit 75f6139

Browse files
committed
Adding fix for click issue
1 parent c123f36 commit 75f6139

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

resources/js/hooks/use-mobile-navigation.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,7 @@ export function useMobileNavigation() {
44
const cleanup = useCallback(() => {
55
// Remove pointer-events style from body...
66
document.body.style.removeProperty('pointer-events');
7-
8-
// Find and click the close button of any open sheet...
9-
const closeButton = document.querySelector('[data-radix-collection-item]');
10-
11-
if (closeButton instanceof HTMLElement) {
12-
closeButton.click();
13-
}
7+
148
}, []);
159

1610
return cleanup;

0 commit comments

Comments
 (0)