Skip to content

Commit

Permalink
fix(formatted-string): wrong atIndex condition
Browse files Browse the repository at this point in the history
  • Loading branch information
rigor789 committed May 23, 2020
1 parent b2adf9c commit 8939f7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/nativescript/element-registry.js
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ registerElement(
() => require('@nativescript/core/text/formatted-string').FormattedString,
{
insertChild(parentNode, childNode, atIndex) {
if (atIndex) {
if (atIndex > -1) {
parentNode.nativeView.spans.splice(atIndex, 0, childNode.nativeView)
return
}
Expand Down

0 comments on commit 8939f7c

Please sign in to comment.