Skip to content

Commit

Permalink
Fix hidden field/header issue
Browse files Browse the repository at this point in the history
Fixes #97
  • Loading branch information
oddvalue authored Feb 5, 2024
1 parent df85549 commit 1f781dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resources/views/components/table-repeater.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,15 @@ class="table-repeater-rows-wrapper divide-y divide-gray-950/5 dark:divide-white/
x-sortable-item="{{ $uuid }}"
class="table-repeater-row md:divide-x md:divide-gray-950/5 dark:md:divide-white/20"
>
@php($conter = 0)
@foreach($row->getComponents() as $k => $cell)
@if(! $cell instanceof \Filament\Forms\Components\Hidden && ! $cell->isHidden())
<td
@class([
'table-repeater-column',
'p-2' => ! $streamlined,
'has-hidden-label' => $cell->isLabelHidden(),
match($headers[$k]->getAlignment()) {
match($headers[$counter++]->getAlignment()) {
'center', Alignment::Center => 'text-center',
'right', 'end', Alignment::Right, Alignment::End => 'text-end',
default => 'text-start'
Expand Down

0 comments on commit 1f781dc

Please sign in to comment.