-
Notifications
You must be signed in to change notification settings - Fork 420
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
Target doesn't work #156
Comments
Why not just use |
well, it can work, but my issue actually is: why the target is not working? |
your code runs as expected on Glitch code: |
What version of Stimulus are you using? Are you using the "standard" webpack + babel setup or another build system? |
im using it on rails with webpackler, stimulus 0.9.0 |
That explains it. Target properties were added in 1.0.0: https://github.com/stimulusjs/stimulus/releases/tag/v1.0.0 |
When i try to use target, i get this error:
TypeError: undefined is not an object (evaluating 'this.homeTarget.innerHTML'
this.homeTarget is undefined
HTML:
Javascript:
What's wrong here?
The text was updated successfully, but these errors were encountered: