Replies: 1 comment 2 replies
-
Makes sense! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I believe there's a bug in the current alpine transition logic regarding newlines. Currently if I have an
x-transition:leave
value like this in liquid (which renders out to having newlines):then an
InvalidCharacterError
error is thrown fromsetClassesFromString
because Alpine is trying to treat the newlines characters as class names:HTML5 docs say this for
class
attribute:And then says that:
Where whitespace characters are:
I believe all we have to do to fix this is to change this line as follows:
Happy to open a PR!
Beta Was this translation helpful? Give feedback.
All reactions