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

How do I hook in to the render/move life event? #43

Closed
NullVoxPopuli opened this issue Feb 29, 2016 · 1 comment
Closed

How do I hook in to the render/move life event? #43

NullVoxPopuli opened this issue Feb 29, 2016 · 1 comment

Comments

@NullVoxPopuli
Copy link

I'm trying to use foundation modals, and I have this component:

a class=buttonClasses data-reveal-id=modalId
  = buttonText

= ember-wormhole to="foundation-modals"
  div.reveal-modal.medium data-reveal=reveal aria-labeledby=titleId aria-hidden=hidden role=role id=modalId data-options="root_element: 'body'"
    h2.text-center = title
    p
      = yield
      a.close-reveal-modal aria-label="Close" ×

and the wormhole moves the under-lying template fine, but I think it loses it's jQuery bindings.

Is there a way to hook in to the wormhole, and call:

$(document).foundation('reflow');?

@NullVoxPopuli
Copy link
Author

I found a solution: emberjs/ember.js#13026 (comment)

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

1 participant