Skip to content

Conversation

ThomasLandauer
Copy link
Contributor

Took me forever to figure this out ;-)
Info is taken from https://fullstackheroes.com/tutorials/stimulus/create-custom-events/

Question: When exactly is it necessary to add @window?

Took me forever to figure this out ;-)
Info is taken from https://fullstackheroes.com/tutorials/stimulus/create-custom-events/

Question: When exactly is it necessary to add `@window`?
@dhh dhh merged commit 49b4e3f into hotwired:main Apr 24, 2023
@adrienpoly
Copy link
Member

Question: When exactly is it necessary to add @window?

you need to add @window if your receiving controller is not the same node or a parent node of the emitting controller

@ThomasLandauer ThomasLandauer deleted the patch-3 branch April 24, 2023 14:36
ThomasLandauer added a commit to ThomasLandauer/stimulus that referenced this pull request Apr 24, 2023
@ThomasLandauer ThomasLandauer mentioned this pull request Apr 24, 2023
@ThomasLandauer
Copy link
Contributor Author

Thanks, see #676

dhh pushed a commit that referenced this pull request May 29, 2023
Info is taken from #675 (comment)
AndersGM pushed a commit to AndersGM/stimulus that referenced this pull request Jun 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants