Skip to content

Commit b710008

Browse files
committed
use better flag variable on transclusion nodes
1 parent 6155102 commit b710008

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/content.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ function extractFragment (nodes, parent, main) {
100100
// clone the node so the original raw content remains
101101
// intact. this ensures proper re-compilation in cases
102102
// where the outlet is inside a conditional block
103-
if (main && !node.selected) {
103+
if (main && !node.__v_selected) {
104104
frag.appendChild(node.cloneNode(true))
105105
} else if (!main && node.parentNode === parent) {
106-
node.selected = true
106+
node.__v_selected = true
107107
frag.appendChild(node.cloneNode(true))
108108
}
109109
}

0 commit comments

Comments
 (0)