core
core copied to clipboard
fix(runtime-core): Fix cssVar cannot work in teleport
close: #7312 close: #7342
Could you maybe explain how your proposed solution compares to the existing PRs for those two issues?
- #7341
- #7344
discard use css attribute
data-v-ownerthat cancelupdateCssVarslimit browser environment only, so #7341 get fixed modifyupdateCssVarsmake cssVar can work in multilevel nesting teleport https://github.com/vuejs/core/blob/fe77e2bddaa5930ad37a43fe8e6254ddb0f9c2d7/packages/runtime-core/src/components/Teleport.ts#L401 modifysetVarsOnVNodeadd handle forTeleportvnode and use MutationObserver to trigger that #7342 get fixed
@sxzz can you help me to review.
@tinyfind can you provide answers for skirtles questions please?
Could you maybe explain how your proposed solution compares to the existing PRs for those two issues?