Lupennat / nova-expandable-many

Laravel Nova Expandable Many
MIT License
4 stars 3 forks source link

Expandable in stack doesn't work (Nova v4.34.3) #7

Closed Keko-94 closed 2 months ago

Keko-94 commented 2 months ago

Hey !

The expandable doesn't work if in Stack field :

Stack::make('Test', [ HasMany::make('User Post', 'posts', Post::class)->expandable() ]),

I got an error in the console:

TypeError: r.resource is undefined image

Thank you very much !

Lupennat commented 2 months ago

Hi keko, Thank's for your feedback. From Nova's documentation, Stack fields are only intended for stacking text lines. For this reason, expandable fields cannot be used within Stack fields and I do not plan to implement support for them.