refactor lwc:dom="manual"
directive to act synchronously
#1253
Labels
Synthetic Shadow
Synthetic shadow DOM polyfill
lwc:dom="manual"
directive to act synchronously
#1253
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.
The text was updated successfully, but these errors were encountered: