Skip to content
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

Adding info about receiving controller #675

Merged
merged 1 commit into from
Apr 24, 2023
Merged

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