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

Attributes not available in didRender #64

Open
simonihmig opened this issue Apr 22, 2019 · 0 comments
Open

Attributes not available in didRender #64

simonihmig opened this issue Apr 22, 2019 · 0 comments

Comments

@simonihmig
Copy link
Contributor

simonihmig commented Apr 22, 2019

I ran into a strange issue, when refactoring ember-popper to support splattributes. Although the polyfill was added, tests fail for Ember 2.18, but passes for newer versions not requiring the polyfill (see kybishop/ember-popper#101, https://travis-ci.org/kybishop/ember-popper/builds/521966875).

I tracked this down to the attributes not being applied to the element at the time didRender is called (which causes other JS errors down the road as the component cannot find the DOM element by ID).

Here's a failing test: #65.
Fails for Ember < 3.4, passes for the newer ones with native support.

simonihmig added a commit to kybishop/ember-popper that referenced this issue Jun 8, 2019
…ead of querying by id

Should hopefully work around the timing issue of ember-polyfills/ember-angle-bracket-invocation-polyfill#64, and is more "octane-ish" anyway.
simonihmig added a commit to kybishop/ember-popper that referenced this issue Jun 8, 2019
…ead of querying by id

Should hopefully work around the timing issue of ember-polyfills/ember-angle-bracket-invocation-polyfill#64, and is more "octane-ish" anyway.
simonihmig added a commit to kybishop/ember-popper that referenced this issue Jun 8, 2019
…ead of querying by id

Should hopefully work around the timing issue of ember-polyfills/ember-angle-bracket-invocation-polyfill#64, and is more "octane-ish" anyway.
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