F
Filament13mo ago
hdaklue

Pagination Bug

Per page dropdown is always duplicated
No description
21 Replies
josef
josef13mo ago
Not for me on latest version (or any before that). Refresh cache?
hdaklue
hdaklueOP13mo ago
not helping I tried cache:clear , view:clear I'm using v3.0.98
josef
josef13mo ago
can you reproduce on a new project? If so, it might be a bug, but I doubt it and am quite certain it's some caching issue with you locally or the server. Does it also occur in a different browser or incognito mode?
hdaklue
hdaklueOP13mo ago
will try with another project and yes it happens on incognito
slooffmaster
slooffmaster13mo ago
npm run build?
hdaklue
hdaklueOP13mo ago
tried that too didn't work.
Dennis Koch
Dennis Koch13mo ago
Do you have views published or a custom theme?
hdaklue
hdaklueOP13mo ago
have custom theme
Dennis Koch
Dennis Koch13mo ago
Did you recompile it?
hdaklue
hdaklueOP13mo ago
yes did everything cache clear, npm run build
Dennis Koch
Dennis Koch13mo ago
Can you debug the HTML? Are there classes missing? the upper one should be hidden for desktop screen size. Check why it's not happening
hdaklue
hdaklueOP13mo ago
the upper one has classes fi-pagination-records-per-page-select fi-compact and here's the pagination css: .fi-pagination-overview { display: none; } .fi-pagination-records-per-page-select:not(.fi-compact) { display: none; } .fi-pagination-items { display: none; } @supports (container-type: inline-size) { .fi-pagination { container-type: inline-size; } @container (min-width: 28rem) { .fi-pagination-records-per-page-select.fi-compact { display: none; } .fi-pagination-records-per-page-select:not(.fi-compact) { display: inline; } } @container (min-width: 56rem) { .fi-pagination:not(.fi-simple)>.fi-pagination-previous-btn { display: none; } .fi-pagination-overview { display: inline; } .fi-pagination:not(.fi-simple)>.fi-pagination-next-btn { display: none; } .fi-pagination-items { display: flex; } } } @supports not (container-type: inline-size) { @media (min-width: 640px) { .fi-pagination-records-per-page-select.fi-compact { display: none; } .fi-pagination-records-per-page-select:not(.fi-compact) { display: inline; } } @media (min-width: 768px) { .fi-pagination:not(.fi-simple)>.fi-pagination-previous-btn { display: none; } .fi-pagination-overview { display: inline; } .fi-pagination:not(.fi-simple)>.fi-pagination-next-btn { display: none; } .fi-pagination-items { display: flex; } } }
Dennis Koch
Dennis Koch13mo ago
Can you see why both are showing at the same time?
hdaklue
hdaklueOP13mo ago
worked fine after adding these classes manually
No description
hdaklue
hdaklueOP13mo ago
any ideas? ?
Dennis Koch
Dennis Koch13mo ago
I just checked out the latest version and checked the dev tools. It should have this rule which should hide the first one.
No description
justgkp
justgkp12mo ago
How to fix this issue? all happened after updating to latest version
No description
Dennis Koch
Dennis Koch12mo ago
Did you run php artisan filament:upgrade?
justgkp
justgkp12mo ago
no
Dennis Koch
Dennis Koch12mo ago
It should be added to your composer scripts. Check if it's there, otherwise add it as mentioned in the docs. Does it solve the issue?
justgkp
justgkp12mo ago
it's already there. I did run both npm run build and php artisan filament:upgrade. Still not resolved.
Want results from more Discord servers?
Add your server