FilamentF
Filament3y ago
22 replies
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(),


Anything wrong in my code? Thanks in advance.
image.png
image.png
Solution
Fixed with v3.1.15. Thanks everyone.
Was this page helpful?