Open zhisme opened 9 months ago
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
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.