Replies: 1 comment
-
|
You have to put such identifiers in quotes |
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.
-
Version: 3.0.18
Bug Description
n:class="$foo ? 'font-bold', -top-0.5"is incorrectly compiled to[$foo ? 'font-bold' : null, -'top-0.5'].The problem is if the class name starts with a hyphen.
The error it produces is
Unsupported operand types: string * intExpected behavior
n:class="$foo ? 'font-bold', -top-0.5"is compiled to[$foo ? 'font-bold' : null, '-top-0.5']Beta Was this translation helpful? Give feedback.
All reactions