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

Is there a callback (action) when the rendering has been done #42

Closed
ayoubgdah opened this issue Feb 17, 2016 · 1 comment
Closed

Is there a callback (action) when the rendering has been done #42

ayoubgdah opened this issue Feb 17, 2016 · 1 comment

Comments

@ayoubgdah
Copy link

How to hook an action once the component has done the job of moving the DOM element?

@ayoubgdah ayoubgdah changed the title Is there a callback (action) when the render has been done Is there a callback (action) when the rendering has been done Feb 17, 2016
@lukemelia
Copy link
Contributor

@ayoubgdah the DOM relocation happens synchronously during didInsertElement, which is during the Ember run loop's render queue, so if you schedule something on the afterRender queue (e.g. Ember.run.schedule('afterRender', this, this.doMyUsefulThing);), you should be good. Feel free to reopen if that doesn't solve your use case.

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