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

Let developers access the initiator element in visit/fetch events #2

Merged
merged 19 commits into from
Sep 26, 2023

Conversation

domchristie
Copy link
Owner

This pull request aims to provide a safe way to dispatch events on initiating elements, enabling developers to choose how to handle Visits based on the element that triggered them. (See hotwired#99). Prior to sending Visit options to the adapter, non-transferable properties are removed. When creating a Visit, the original options are reinstated. Ideally the sanitization process would be handled by the iOS adapter (just before calling postMessage), but for backwards compatibility, it needs to done at this level.

@domchristie domchristie force-pushed the initiator_with_native_support_domchristie_turbo branch from 1c629b4 to b48b4a3 Compare September 25, 2023 20:49
@domchristie domchristie merged commit c458b47 into main Sep 26, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant