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

refactor lwc:dom="manual" directive to act synchronously #1253

Open
caridy opened this issue May 21, 2019 · 0 comments
Open

refactor lwc:dom="manual" directive to act synchronously #1253

caridy opened this issue May 21, 2019 · 0 comments
Labels
Synthetic Shadow Synthetic shadow DOM polyfill

Comments

@caridy
Copy link
Contributor

caridy commented May 21, 2019

Description

Today, lwc:dom="manual" relies on mutation observer to apply the right keys and css tokens for newly inserted nodes, but it happens on the next tick, causing some weird behavior, and unpredictable results.

Proposal

Patch DOM APIs on the portal elements so any manual operation on the node should automatically be picked up in a synch fashion, then, any new node inserted should automatically become a new portal element by transitivity, so they can pick deep insertion points as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Synthetic Shadow Synthetic shadow DOM polyfill
Projects
None yet
Development

No branches or pull requests

2 participants