-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
Component ready() not firing for iframed vue instance #2831
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
Comments
You should use the native selector instead of jquery selector because the jquery selector returns a jquery object which cannot be operated by Vue. Try this Code, the |
So "this" points to a document node (not a jquery object $('#iframe')) but regardless, even when I swap out the iframe with document.getElementById (like in the code you have above), the |
This is because the You can use |
@yyx990803 Thanks man! |
Vue.js version
1.0.22
Reproduction Link
http://codepen.io/kelt/pen/KzJYqE
Steps to reproduce
Create a new Vue instance with el that points to loaded iframe body. Inside this iframe body create a component. The ready method is not called on this component even though the component is rendered with it's template.
What is Expected?
I expected the ready function to be called on the 'editable' component.
What is actually happening?
The ready function is never being invoked.
The text was updated successfully, but these errors were encountered: