We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8939f7c commit 929b11aCopy full SHA for 929b11a
platform/nativescript/renderer/ViewNode.js
@@ -207,7 +207,7 @@ export default class ViewNode {
207
referenceNode.prevSibling = childNode
208
this.childNodes.splice(index, 0, childNode)
209
210
- viewUtil.insertChild(this, childNode, index === 0 ? 0 : index - 1)
+ viewUtil.insertChild(this, childNode, index)
211
}
212
213
appendChild(childNode) {
@@ -238,7 +238,7 @@ export default class ViewNode {
238
239
this.childNodes.push(childNode)
240
241
- viewUtil.insertChild(this, childNode, this.childNodes.length - 1)
+ viewUtil.insertChild(this, childNode)
242
243
244
removeChild(childNode) {
0 commit comments