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
When adding x-show on flux:separator it is not appended to the wrapping div, but fowarded to both of the divs that render the separator lines, but the text does not receive this alpine directive causing the text to still show in case x-show returns false.
@mauritskorse Have you tried wrapping the whole flux:separator?
I find it's always more reliable to do something like this as we don't always know what markup a component will expand into (e.g. multiple divs, nested, etc.):
Yep, that is the solution for now. But it doesn't feel intuitive and neat. Especially because this way we're getting quite some nested divs for js/alpine implemenations where intially it was a blessing to have Flux make all those nests unnecessary for styling.
@mauritskorse I feel differently on this one. I think relying on all Flux components to be able to handle such an Alpine directive inherently adds a level of complexity, to the Flux code, that outweighs the benefits for a relatively infrequent use-case.
Flux version
v2.0.6
Livewire version
v3.6.2
Tailwind version
v4.0.14
Browser and Operating System
Vivaldi on Windows
What is the problem?
When adding
x-show
on flux:separator it is not appended to the wrapping div, but fowarded to both of the divs that render the separator lines, but the text does not receive this alpine directive causing the text to still show in case x-show returns false.Code snippets
is rendered into
How do you expect it to work?
That the x-show is added to the wrapping div:
Please confirm (incomplete submissions will not be addressed)
The text was updated successfully, but these errors were encountered: