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

Ensure Turbo does not interfere with IFrames #389

Merged
merged 1 commit into from
Jul 17, 2022

Conversation

seanpdoyle
Copy link
Contributor

Skip intercepting <a> element clicks or <form> element submissions
when they target an <iframe>. This occurs when an <a> declares a
target, when a <form> declares a target, or
a <form> element's submitting <button> element declares a
formtarget.

@dhh dhh added this to the 7.1.0 milestone Sep 10, 2021
@seanpdoyle seanpdoyle force-pushed the skip-iframe-targets branch 4 times, most recently from 47786c7 to 391a557 Compare November 13, 2021 12:03
seanpdoyle added a commit to thoughtbot/hotwire-example-template that referenced this pull request Dec 10, 2021
seanpdoyle added a commit to thoughtbot/hotwire-example-template that referenced this pull request Dec 10, 2021
@dhh
Copy link
Member

dhh commented Jul 16, 2022

Still relevant, yeah?

@seanpdoyle seanpdoyle force-pushed the skip-iframe-targets branch 3 times, most recently from 3a0375e to d905f09 Compare July 16, 2022 04:20
Skip intercepting `<a>` element clicks or `<form>` element submissions
when they target an `<iframe>`. This occurs when an `<a>` declares a
[target][a-target], when a `<form>` declares a [target][form-target], or
a `<form>` element's submitting `<button>` element declares a
[formtarget][formtarget].

[a-target]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target
[form-target]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-target
[formtarget]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-formtarget
@seanpdoyle seanpdoyle force-pushed the skip-iframe-targets branch from d905f09 to b958895 Compare July 16, 2022 04:22
@dhh dhh merged commit 0f413f2 into hotwired:main Jul 17, 2022
@seanpdoyle seanpdoyle deleted the skip-iframe-targets branch July 17, 2022 23:32
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.

2 participants