filamentphp / filament

A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS.
https://filamentphp.com
MIT License
19.3k stars 2.96k forks source link

Wrapping Infolist RepeatableEntry in a Section/Grid/Group breaks relationship #9396

Closed ashleyhood closed 1 year ago

ashleyhood commented 1 year ago

Package

filament/filament

Package Version

v3.0.88

Laravel Version

v10.30.0

Livewire Version

v3.0.8

PHP Version

PHP 8.2.12

Problem description

When using an Infolist for a resource that has a Filament\Infolists\Components\RepeatableEntry wrapped in a Filament\Infolists\Components\Section, nested inside a RepeatableEntry it causes the nested RepeatableEntry to only render the first record for each of the parent RepeatableEntry.

Expected behavior

Each nested RepeatableEntry should render the correct record for the parent RepeatableEnrty.

This works as expected if you don't wrap the nested RepeatableEntry in a Section/Grid/Group.

Steps to reproduce

Wrap a nested RepeatableEntry in a Section\Grid\Group inside another RepeatableEntry.

Reproduction repository

https://github.com/ashleyhood/filament-infolist-test

Relevant log output

No response

zepfietje commented 1 year ago

Dupe of https://github.com/filamentphp/filament/issues/6964.