We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I believe the example code is wrong.
highlight: function(event) { event.stopImmediatePropagation() // ... }
we are inside class, but here it is written like object property and thus leading to SyntaxError: Unexpected identifier 'highlight'
SyntaxError: Unexpected identifier 'highlight'
should be corrected like in all other examples to class function definition
highlight(event) { event.stopImmediatePropagation() // ... }
Stumbled upon working with documentation and copypasting to my project.
The text was updated successfully, but these errors were encountered:
You are right 👍🏼
Feel free to open a PR on https://github.com/hotwired/stimulus and fix it in this file: https://github.com/hotwired/stimulus/blob/bafb739401f54fed1b70869410979b5acd43f487/docs/reference/actions.md#multiple-actions
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
I believe the example code is wrong.
we are inside class, but here it is written like object property and thus leading to
SyntaxError: Unexpected identifier 'highlight'
should be corrected like in all other examples to class function definition
Stumbled upon working with documentation and copypasting to my project.
The text was updated successfully, but these errors were encountered: