Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# ignore all the shadcn components from formatting
resources/js/components/ui/*
7 changes: 0 additions & 7 deletions resources/js/hooks/use-mobile-navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@ export function useMobileNavigation() {
const cleanup = useCallback(() => {
// Remove pointer-events style from body...
document.body.style.removeProperty('pointer-events');

// Find and click the close button of any open sheet...
const closeButton = document.querySelector('[data-radix-collection-item]');

if (closeButton instanceof HTMLElement) {
closeButton.click();
}
}, []);

return cleanup;
Expand Down