Alpine x-show breaks Laravel blade conditional @class #2123
Unanswered
tanthammar
asked this question in
5. Bugs
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When I use
x-show
on an html element it breaks Laravel blade conditional classes.If I remove x-show the conditional class is displayed correctly.
Example in a blade component with an input.
Moving x-show to a parent div, solves it but It's still weird.
(Also tried:
$attributes->class([...])
and$attributes->merge([ 'class' => ... ])
class="@errors('foo') ... @else ... @enderror"
)
Beta Was this translation helpful? Give feedback.
All reactions