Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ee6e550

Browse files
committed
fix(action-bar): ignore InvisibleNodes when adding title
fixes #897
1 parent 448412a commit ee6e550

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

‎nativescript-angular/directives/action-bar.ts‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { View } from "tns-core-modules/ui/core/view";
55

66
import { isBlank } from "../lang-facade";
77
import {
8+
InvisibleNode,
89
NgView,
910
ViewClassMeta,
1011
registerElement,
@@ -16,7 +17,9 @@ const actionBarMeta: ViewClassMeta = {
1617
const bar = <ActionBar>(<any>parent);
1718
const childView = <any>child;
1819

19-
if (child instanceof NavigationButton) {
20+
if (child instanceof InvisibleNode) {
21+
return;
22+
} else if (child instanceof NavigationButton) {
2023
bar.navigationButton = childView;
2124
childView.parent = bar;
2225
} else if (child instanceof ActionItem) {
@@ -30,7 +33,9 @@ const actionBarMeta: ViewClassMeta = {
3033
const bar = <ActionBar>(<any>parent);
3134
const childView = <any>child;
3235

33-
if (child instanceof NavigationButton) {
36+
if (child instanceof InvisibleNode) {
37+
return;
38+
} else if (child instanceof NavigationButton) {
3439
if (bar.navigationButton === childView) {
3540
bar.navigationButton = null;
3641
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /