10000 fix: fix odd App crash while using v-if inside the RLV's template · tralves/nativescript-vue@82dc863 · GitHub
[go: up one dir, main page]

Skip to content

Commit 82dc863

Browse files
committed
fix: fix odd App crash while using v-if inside the RLV's template
1 parent 1cc8142 commit 82dc863

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform/nativescript/renderer/ViewNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export default class ViewNode {
172172
return this.appendChild(childNode)
173173
}
174174

175-
if (referenceNode.parentNode !== this) {
175+
if (referenceNode.parentNode && referenceNode.parentNode !== this) {
176176
throw new Error(
177177
`Can't insert child, because the reference node has a different parent.`
178178
)

0 commit comments

Comments
 (0)
0