F
Filamentsidrit

ReferenceError: selectedRows is not defined

I have a custom filament page. Super simple: an infolist and a table
<x-filament-panels::page>
{{ $this->infolist }}

{{ $this->table }}
</x-filament-panels::page>
<x-filament-panels::page>
{{ $this->infolist }}

{{ $this->table }}
</x-filament-panels::page>
When on this page i try to perform any actions i'm getting ReferenceError: selectedRows is not defined (screenshot attached). I realised that this happens only if the table has not been rendered yet. Meaning if the table is not in the viewport it won't be rendered (by default). If i scroll to render it then i can use the page normally without any issues
No description