filament icon indicating copy to clipboard operation
filament copied to clipboard

Firefox flickering between page loads when sidebar is set to collapsible

Open benshawuk opened this issue 3 years ago • 1 comments

Package

filament/filament

Package Version

v2.0.0

Laravel Version

10

Livewire Version

v2.11

PHP Version

PHP 8.2.5

Problem description

When navigating between Filament admin pages using Firefox on MacOS (not able to test on other OSes), the page flickers as it looks to be doing a full re-render. Although this is expected behaviour on a full page load, it usually appears smoothed over and less jerky as you don't see all content being redrawn. When doing the same in another browser (Chrome or Safari), or setting 'sidebar' => [ 'is_collapsible_on_desktop' => false] (instead of true), the behaviour reverts to normal.

This can be seen on this screen recording (taken from @Stanley on Discord): https://cdn.discordapp.com/attachments/1083743705892134963/1083743706345128027/Screen_Recording_2023-03-10_at_14.24.39.mov

I'm guessing there's some rendering process for the sidebar that's making Firefox redraw the elements slower, forcing the "flicker".

Expected behavior

Flickering shouldn't occur, like the normal behaviour in Safari and Chrome, or when 'sidebar' => [ 'is_collapsible_on_desktop' => true]

Steps to reproduce

Create a new Filament app, set 'sidebar' => [ 'is_collapsible_on_desktop' => true ] Browse between pages/resources from the sidebar in Firefox (MacOS).

Reproduction repository

https://github.com/filamentphp/filament

Relevant log output

none

benshawuk avatar Jun 11 '23 14:06 benshawuk

Hey @benshawuk! We're sorry to hear that you've hit this issue. 💛

However, it looks like you forgot to fill in the reproduction repository URL. Can you edit your original post and then we'll look at your issue?

We need a public GitHub repository which contains a Laravel app with the minimal amount of Filament code to reproduce the problem. Please do not link to your actual project, what we need instead is a minimal reproduction in a fresh project without any unnecessary code. This means it doesn't matter if your real project is private / confidential, since we want a link to a separate, isolated reproduction. That would allow us to download it and review your bug much easier, so it can be fixed quicker. Please make sure to include a database seeder with everything we need to set the app up quickly.

github-actions[bot] avatar Jun 11 '23 14:06 github-actions[bot]