You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey there, I just found an issue where a <flux:tab.panel> stays hidden if the component is lazy loaded.
Actually the data-selected attribute is simply not set for the wire:modeled panel.
Code snippets
Class based:
<?phpnamespaceApp\Livewire;
useLivewire\Attributes\Lazy;
useLivewire\Component;
#[Lazy]
class Test extends Component
{
publicstring$tab = 'one';
}
My current workaround is to add x-init="$el.setAttribute('data-selected', 'data-selected'); $el.setAttribute('tabindex', 0)"
to the first <flux:tab.panel>.
Flux version
v1.1.4
Livewire version
v3.5.19
Tailwind version
v3.4.17
What is the problem?
Hey there, I just found an issue where a
<flux:tab.panel>
stays hidden if the component is lazy loaded.Actually the
data-selected
attribute is simply not set for the wire:modeled panel.Code snippets
Class based:
...or as a Volt component (make sure to lazy load it):
How do you expect it to work?
<ui-tabs>
should correctly initialize the panel and set thedata-selected
attribute when lazy loaded.Please confirm (incomplete submissions will not be addressed)
The text was updated successfully, but these errors were encountered: