-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Space before comma leads to hx-trigger being ignored #2897
Labels
bug
Something isn't working
Comments
Indeed, that's a pretty annoying behavior... |
4 tasks
@npt fix now in v2.0.3 so please retest and close if it is now resolved |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With
hx-trigger="someCustomEvent from:body, load"
, the trigger on load works. Change it tohx-trigger="someCustomEvent from:body , load"
, and the trigger on load no longer fires (andhtmx:syntax:error
is written to the console twice).I would expect the extra whitespace to be ignored. (This came up when generating HTMX using a Jinja template, where I wanted to conditionally include the load trigger, so now my template is written in a more condensed style than I'd prefer.)
The text was updated successfully, but these errors were encountered: