F
Filament12mo ago
KA

->expandableLimitedList() seems not working as expected for InfoList

https://www.awesomescreenshot.com/video/23050173?key=c81e976636374c3b8a16da7a40e3ecd6 I have 6 items in my list, I wanted to show only one and hide 5 items. But it shows 2 instead of one and hides 4 items. Also, the text is showing Show 5 more or Show 5 less. Here is my code:
TextEntry::make('transits')
->formatStateUsing(fn($state):string => date('d M, Y', strtotime($state->eta)) . ' ⋅ ' . $state->port->iso)
->badge()
->listWithLineBreaks()
->limitList(1)
->expandableLimitedList(),
TextEntry::make('transits')
->formatStateUsing(fn($state):string => date('d M, Y', strtotime($state->eta)) . ' ⋅ ' . $state->port->iso)
->badge()
->listWithLineBreaks()
->limitList(1)
->expandableLimitedList(),
Anything wrong in my code? Thanks in advance.
No description
No description
Solution:
Fixed with v3.1.15. Thanks everyone.
Jump to solution
16 Replies
Dan Harrin
Dan Harrin12mo ago
try without badges, i havent tried it with those
KA
KAOP12mo ago
its showing same
No description
KA
KAOP12mo ago
No description
Dan Harrin
Dan Harrin12mo ago
what is your exact filament version
KA
KAOP12mo ago
v3.1.0
Dan Harrin
Dan Harrin12mo ago
please update you can use ^3.0-stable in your composer.json
KA
KAOP12mo ago
sure thank you updating now its already on composer.json
toeknee
toeknee12mo ago
Sp running an update would in theory fix this.
Dan Harrin
Dan Harrin12mo ago
did it fix?
KA
KAOP12mo ago
sorry, not fixed yet fyi, composer.lock says i have v3.1.14
Dan Harrin
Dan Harrin12mo ago
please open an issue with a reproduction repository
KA
KAOP12mo ago
sure, i will and thank you
Solution
KA
KA12mo ago
Fixed with v3.1.15. Thanks everyone.
Umar Farooq
Umar Farooq6mo ago
The expandableLimitedList also navigates the page instead of just expanding the list
Rolland
Rolland6mo ago
+1
Dan Harrin
Dan Harrin6mo ago
Please open an issue with reproduction
Want results from more Discord servers?
Add your server