diff --git a/.prettierignore b/.prettierignore index be2be313f..784c8c4c1 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1 +1,2 @@ +# ignore all the shadcn components from formatting resources/js/components/ui/* diff --git a/resources/js/hooks/use-mobile-navigation.ts b/resources/js/hooks/use-mobile-navigation.ts index 174b776ce..e853726d8 100644 --- a/resources/js/hooks/use-mobile-navigation.ts +++ b/resources/js/hooks/use-mobile-navigation.ts @@ -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;