8000 fix(ListView): v-if usage crash inside RLV template (#554) · designemail/nativescript-vue@838d98a · GitHub
[go: up one dir, main page]

Skip to content

Commit 838d98a

Browse files
msaelicesrigor789
authored andcommitted
fix(ListView): v-if usage crash inside RLV template (nativescript-vue#554)
1 parent 3225852 commit 838d98a

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(
177< 4008 /code>177
`Can't insert child, because the reference node has a different parent.`
178178
)

0 commit comments

Comments
 (0)
0