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

Using v-on with iframes? #290

Closed
kristoferjoseph opened this issue Jun 4, 2014 · 1 comment
Closed

Using v-on with iframes? #290

kristoferjoseph opened this issue Jun 4, 2014 · 1 comment

Comments

@kristoferjoseph
Copy link

When using a v-on with an iframe element you need to do a few extra steps to get it to behave as expected.
For instance to get a click to work you need to:

  1. wait for the load event
  2. use addEventListener to add event handlers to contentWindow.window.document.body
    Any thoughts on how this could work more seamlessly?
@yyx990803
Copy link
Member

Ah, never thought of this before. I guess we can check if the bound element is an iFrame in v-on's implementation.

yyx990803 pushed a commit that referenced this issue Jun 6, 2014
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

No branches or pull requests

2 participants