isLimited combined with getTableRecordActionUsing breaks
Using the table package, I created a table in a Livewire component.
Everything works, until I add the combination of an
expandableList
and getTableRecordActionUsing()
The problem is getTableRecordActionUsing()
adds a wrapper button on every cell in the table, but the button to toggle isLimited, is put outside of this wrapper. Thus Alpine throwing an error because the isLimited
alpine object, it outside of the scope of the "show more" button.
Is this a Filament bug? or Am I doing something wrong?3 Replies
Can you share a short code example?
@Dennis Koch certainly:
a
User
hasMany InstructorLevel
created a custom Livewire table component like you always would
add
Console gives error, "show more" isnt shown.
When you inspect the code, you find the button to toggle isLimited
is outside the x-data scope where islimited
is defined.
a button element is added around the <ul> element that triggers the view action. Which closes before the show-more-buttonYou are probably using the ViewModal? Probably nothing I can help with. Can you open an issue on Github for this?