© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•6mo ago•
3 replies
mrkbingham

v4 Rendering Relation Manager in a Modal not working

Previously, in v3 I was able to render a relation manager using this:
->modalContent(function (InventoryItem $record) {
    return ViewField::make('unitConversionRelationManager')
        ->view('filament-panels::components.resources.relation-managers')
        ->viewData([
            'managers' => [UnitConversionsRelationManager::class],
            'ownerRecord' => $record,
            'activeManager' => '0',
            'pageClass' => static::class,
        ])->render();
});
->modalContent(function (InventoryItem $record) {
    return ViewField::make('unitConversionRelationManager')
        ->view('filament-panels::components.resources.relation-managers')
        ->viewData([
            'managers' => [UnitConversionsRelationManager::class],
            'ownerRecord' => $record,
            'activeManager' => '0',
            'pageClass' => static::class,
        ])->render();
});


I've updated my modal content to something like this in v4 (I lifted the
Livewire::make
Livewire::make
from the
HasRelationManagers
HasRelationManagers
getRelationManagersContentComponent
getRelationManagersContentComponent
method), I can get the table to render, but it does not respond to any clicks:

->modalContent(function (CustomForm $record, Schema $schema) {
    // Calendar availability relation manager
    return Livewire::make(CalendarFieldOptionsRelationManager::class, [
            'ownerRecord' => $record,
            'pageClass' => static::class,
        ])->key(CalendarFieldOptionsRelationManager::class)
        ->container($schema)
        ->render();
});
->modalContent(function (CustomForm $record, Schema $schema) {
    // Calendar availability relation manager
    return Livewire::make(CalendarFieldOptionsRelationManager::class, [
            'ownerRecord' => $record,
            'pageClass' => static::class,
        ])->key(CalendarFieldOptionsRelationManager::class)
        ->container($schema)
        ->render();
});


Is this the proper way to approach this requirement in v4? If this is just a bug then I can dive further and open up a new issue on Github
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Relation Manager not in modal
FilamentFFilament / ❓┊help
2y ago
Relation manager in action/modal
FilamentFFilament / ❓┊help
3y ago
Edit not working in relation manager.
FilamentFFilament / ❓┊help
3y ago
Having a relation manager under the edit form in a modal of a relation manager
FilamentFFilament / ❓┊help
3y ago