Closed Szymon-dziewonski closed 4 years ago
The project.zip
link you provided 404s for me. I'm also unable to reproduce the issue using a bare bones Stimulus application: https://glitch.com/~classic-yellowhorn.
Thanks for quick reply,
Glitch link is indeed working but my example didn't work. But since you use glitch and I want you to see problem I prepared example for you on glitch.
https://recondite-flare.glitch.me/
This example has additional data-action="" on svg
with mouseover
and mouseleave
events, svg animation is triggered at start and on mouseover
restarted
Aha! My example didn't have any data-action
attributes.
Until the next release is out, you can fix this by adding the code from aa76e25f104ed165a8985f9c93e25c7912ed218f to your application: https://github.com/stimulusjs/stimulus/blob/aa76e25f104ed165a8985f9c93e25c7912ed218f/packages/%40stimulus/polyfills/index.js#L12-L16
Thanks for the report!
@javan thank you for quick resolving issue, its working :)
Hello my problem is connected with multiple targets connected with controller. Here's example which works on every browser - besides our beloved IE 11 (I'm not looking for previous versions) example it's on my subdomain since I'd like to reproduce as much as possible from my original project so webpack build etc
index.ts
index.html
Error: Object does not support property or method "contains"
Testing -> http://stimulus.szymondziewonski.com/project.zip If you are not feeling comfortable to download zip here's files needed to recreate it dist/index.html (already included) src/index.ts (already included) root webpack.config.js tsconfig.json package.json
install packages and run
yarn build
Any help would be much appreciated