Skip to content

Commit 5b4f8ff

Browse files
committed
fix: ViewUtils tried to remote Span elements from Labels
Just like with FormattedString this throws an exception
1 parent 596daec commit 5b4f8ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: nativescript-angular/view-util.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ export class ViewUtil {
267267
} else if (child.nodeName === "DetachedContainer") {
268268
// Skip - DetachedContainer is... well detached from its parent
269269
// Used with ListViews and other TemplatedItemsComponent views.
270-
} else if (child.nodeName === "FormattedString") {
270+
} else if (child.nodeName === "FormattedString" || child.nodeName === "Span") {
271271
// Removing FormattedString and its Spans from a Label throws an exception
272272
} else if (isView(parent)) {
273273
parent._removeView(child);

0 commit comments

Comments
 (0)