Skip to content
Discussion options

You must be logged in to vote

Ok, I found out where the problem is and found a workaround. The problem seems to be the tabindex present in each Tab. The tabindex="0" present in the view's extraAttributes poses a problem for modal forms in Livewire's custom components.

I override the tab.blade.php view in my Tab Component who extend FilamentTab :

@php
    $id = $getId();
    $isContained = $getContainer()->getParentComponent()->isContained();

    $activeTabClasses = \Illuminate\Support\Arr::toCssClasses([
        'fi-active',
        'p-6' => $isContained,
        'mt-6' => ! $isContained,
    ]);

    $inactiveTabClasses = 'invisible h-0 overflow-y-hidden p-0';
@endphp

<div
    x-bind:class="{
        @js($activeTab…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by antoinemy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant