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

[BUGFIX beta] Avoid breaking {{-in-element}} usage #18727

Merged
merged 1 commit into from
Feb 4, 2020

Conversation

chancancode
Copy link
Member

The intimate {{#-in-element}} API previously defaults to appending to the remote element without clearing. With the VM upgrade, the default has changed to clearing the remote element as specified by the RFC. Since we are not ready to promote the public API yet, we should preserve the existing behavior and let addon authors migrate to the new public API directly when it is ready.

The intimate `{{#-in-element}}` API previously defaults to appending
to the remote element without clearing. With the VM upgrade, the
default has changed to clearing the remote element as specified by
the RFC. Since we are not ready to promote the public API yet, we
should preserve the exisiting behavior and let addon authors migrate
to the new public API directly when it is ready.
@rwjblue
Copy link
Member

rwjblue commented Feb 4, 2020

Just wanted to clarify, what is the relationship to #18696?

@chancancode
Copy link
Member Author

@rwjblue unrelated; I have a different fix for that on the VM side. ember-cli-head uses -in-element on the <head> element, which is outside the app's render result and thus does not trigger #18696. However, it now clears the <head> element whenever it's rendered. Among other breakages, it causes the qunit harness to be immediately destyled 🙈

@simonihmig
Copy link
Contributor

This makes sense, thanks @chancancode for fixing that!

FWIW, I was not sure if it was intentional to land the semantic changes here even when not making this public yet, so I tried to fix my polyfill for that change (ember-polyfills/ember-in-element-polyfill#37), but this seems unnecessary now. Which is good!

On that matter: what is the reason for not making in-element public yet?

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

Successfully merging this pull request may close these issues.

3 participants