SPA mode brings up the menu at the beginning!

Friends, I have an app with several modules and when I go to any selection in the menu it always goes up or automatically scrolls to the top of the list, for example if I click on the lowest module in the menu it goes back to the top, it doesn't keep that in screen, is there a way to solve this, thank you very much! i click here and go to the top of the menu again! any idea about this problem? Thank you!
No description
7 Replies
TranceCode
TranceCodeOP6mo ago
???? Has this happened to anyone else or do you have any idea about the problem? thank you! I still can't solve this problem!
awcodes
awcodes6mo ago
It would make sense in non spa mode. Is this a custom navigation? The styling is certainly different than normal.
TranceCode
TranceCodeOP5mo ago
The only customized thing is basically the css style friend, but the rest is all generated as the filament components are generated... apart from that there is nothing else, it's like a new theme you could say, but always css nothing more. .. @awcodes disable the theme in my PanelProvider, this line
->viteTheme('resources/css/filament/company/theme.css')
->viteTheme('resources/css/filament/company/theme.css')
but the problem persist, do you have any idea about this problem or any recommendation? Thank you! It is supposed that in spa mode it should only update the content of the form section, not the sidebar and topbar menu... I think that is basically where the problem this is my vite configuration:
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';

export default defineConfig({
plugins: [
laravel({
input: [
'resources/css/app.css',
'resources/js/app.js',
'resources/css/filament/company/theme.css',
],
refresh: true,
}),
],
});
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';

export default defineConfig({
plugins: [
laravel({
input: [
'resources/css/app.css',
'resources/js/app.js',
'resources/css/filament/company/theme.css',
],
refresh: true,
}),
],
});
M hamdi
M hamdi3mo ago
up. I am also looking for a solution to this problem
awcodes
awcodes3mo ago
can either of you provide a minimum reproduction repo?
S3natorz
S3natorz2mo ago
is there any solution for this problem?
TranceCode
TranceCodeOP2mo ago
Not yet bro, not in my project! do you have the same problem now? i update to last version, i try without my personal theme and the problem continue!
Want results from more Discord servers?
Add your server