Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On mobile, filament panel loads with sidebar expanded #15056

Open
Persaeus opened this issue Dec 11, 2024 · 0 comments
Open

On mobile, filament panel loads with sidebar expanded #15056

Persaeus opened this issue Dec 11, 2024 · 0 comments
Labels
Milestone

Comments

@Persaeus
Copy link
Contributor

Persaeus commented Dec 11, 2024

Package

filament/filament

Package Version

v3.2.128

Laravel Version

v11.34.2

Livewire Version

v3.5.12

PHP Version

PHP 8.4.1

Problem description

The page loads with the sidebar expanded by default on mobile...

Screen.Recording.2024-12-11.mov

The reason, is that the sidebar's isOpen parameter is initialized as true:

isOpen: window.Alpine.$persist(true).as('isOpen'),

Expected behavior

The page should load normally and not be obscured by the sidebar slideover. The sidebar navigation can be accessed by clicking on the hamburger button

Steps to reproduce

  1. Open new browser window with private/incognito mode, so localStorage is empty
  2. Use a mobile browser, or use something like "Responsive Design Mode" to simulate narrow screen width
  3. Navigate to any panel page
  4. Observe that the page loads with sidebar expanded

Reproduction repository (issue will be closed if this is not valid)

https://github.com/filamentphp/demo

Relevant log output

No response

Donate 💰 to fund this issue

  • You can donate funding to this issue. We receive the money once the issue is completed & confirmed by you.
  • 100% of the funding will be distributed between the Filament core team to run all aspects of the project.
  • Thank you in advance for helping us make maintenance sustainable!
Fund with Polar
@Persaeus Persaeus added bug Something isn't working medium priority unconfirmed labels Dec 11, 2024
@github-project-automation github-project-automation bot moved this to Todo in Roadmap Dec 11, 2024
@danharrin danharrin added this to the v3 milestone Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

No branches or pull requests

2 participants