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

Not working with spa() mode #37

Open
bernhardh opened this issue Nov 12, 2024 · 1 comment
Open

Not working with spa() mode #37

bernhardh opened this issue Nov 12, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@bernhardh
Copy link

bernhardh commented Nov 12, 2024

Filament Version

v3

Plugin Version

v2.0.5

PHP Version

8.2.25

Problem description

When using the Filament spa() mode (https://filamentphp.com/docs/3.x/panels/configuration#spa-mode), the top bar isn't consistantly sticky anymore.

Expected behavior

The header should be sticky

Steps to reproduce

Just activate the SPA mode in your panel provider:

public function panel(Panel $panel): Panel
{
    return $panel
        // ...
        ->spa();
}

And then test:

  1. Load the page with /admin
  2. Navigate to some resource index
  3. Go to first resource to edit -> Scroll down -> Header is not sticky
  4. Reload the page with CTRL+R -> scroll down -> now its sticky

Reproduction repository

No response

Relevant log output

No response

@bernhardh bernhardh added the bug Something isn't working label Nov 12, 2024
@awcodes
Copy link
Owner

awcodes commented Nov 13, 2024

I'll see if I can figure something out. The problem is that the elements have to be there on page load for the JS to take effect and with SPA mode, they are injected after the script tries to initialize.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants