8000 fix(formatted-string): wrong atIndex condition · boazblake/nativescript-vue@8939f7c · GitHub
[go: up one dir, main page]

Skip to content

Commit 8939f7c

Browse files
committed
fix(formatted-string): wrong atIndex condition
1 parent b2adf9c commit 8939f7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform/nativescript/element-registry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ registerElement(
399399
() => require('@nativescript/core/text/formatted-string').FormattedString,
400400
{
401401
insertChild(parentNode, childNode, atIndex) {
402-
if (atIndex) {
402+
if (atIndex > -1) {
403403
parentNode.nativeView.spans.splice(atIndex, 0, childNode.nativeView)
404404
return
405405
}

0 commit comments

Comments
 (0)
0