PackagePanel builder Package Version3 How can we help you?Hello everyone, I have a resource that has a form with tabs. In one of the tabs, I need form fields. In the other, I need to display a custom table. So I created a Livewire component like in the documentation, and integrated it into my second tab. I also duplicated it to put it out of tabs to find the cause of my problem (and it seems a conflict with tabs). My problem is this: When I'm in my second tab and I open my modal (which only opens on the second click), my form fields keep the focus when I click outside. However if I do the same procedure on my Livewire component outside of the tabs. Everything works like a charm. Enregistrement.de.l.ecran.2024-05-12.a.23.53.09.movThe tabs seem to create a conflict. Someone can help me? Or is this a bug? Thank you, Antoine |
Replies: 1 comment
|
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 : I commented out the line: |
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 :