filament icon indicating copy to clipboard operation
filament copied to clipboard

Show more didn't expand column, it redirect to view page instead in table view if limit list exceed

Open shreejanpandit opened this issue 1 year ago • 2 comments

Package

filament/tables

Package Version

v3

Laravel Version

v10

Livewire Version

v3

PHP Version

PHP 8

Problem description

Show more didn't expand column, it redirect to view page instead in table view if limit list exceed. image

Expected behavior

It must only expand column not redirect to any page without any URL provided.the

Steps to reproduce

TextColumn::make('title') ->badge() ->listWithLineBreaks() ->limitList(2) ->expandableLimitedList(),

Reproduction repository (issue will be closed if this is not valid)

https://github.com/shreejanpandit/doctor_appointment_filament

Relevant log output

No response

shreejanpandit avatar Nov 13 '24 10:11 shreejanpandit

I also faced this issue and found a workaround that resolved it. Here’s what I did:

TextColumn::make('tags')
  ->url('#') // or ->url('javascript:void(0)')
  ->listWithLineBreaks()
  ->limitList(3)
  ->expandableLimitedList()

AsmitNepali avatar Feb 21 '25 09:02 AsmitNepali

Had the same issue .. it happens when the table action gets wrapped around the column. Then the alpine component with "isLimited" is no longer working.

i solved it similar to asmit's suggestion:

$table->recordAction(null)

mvenghaus avatar Mar 06 '25 06:03 mvenghaus

Fixed by #16068

danharrin avatar Jun 22 '25 16:06 danharrin