Skip to content

Commit 7c9790b

Browse files
authored
Merge pull request #11 from laravel/fixingClickIssue
Fixing click issue
2 parents f5da753 + ae661c9 commit 7c9790b

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
# ignore all the shadcn components from formatting
12
resources/js/components/ui/*

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,6 @@ 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-
}
147
}, []);
158

169
return cleanup;

0 commit comments

Comments
 (0)