Blade @class directive renders class attribute even if its empty #43947
Unanswered
stoffpalette
asked this question in
General
Replies: 3 comments
-
It doesn't break anything |
Beta Was this translation helpful? Give feedback.
0 replies
-
No, it doesn't break if used standalone, but it is not expected and needless. Furthermore it is easy to fix. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Feel free to make a PR |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Blade's @Class directive should not render a class attribute, if every class-name is evaluated to false.
Currently, if you do
@class(['first-class' => false, 'second-class' => false])
the rendered result is"class"
instead of""
.Beta Was this translation helpful? Give feedback.
All reactions