Skip to content

Using v-on with iframes? #290

Closed
Closed
@kristoferjoseph

Description

@kristoferjoseph

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions