File tree 1 file changed +7
-2
lines changed
nativescript-angular/directives
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { View } from "tns-core-modules/ui/core/view";
5
5
6
6
import { isBlank } from "../lang-facade" ;
7
7
import {
8
+ InvisibleNode ,
8
9
NgView ,
9
10
ViewClassMeta ,
10
11
registerElement ,
@@ -16,7 +17,9 @@ const actionBarMeta: ViewClassMeta = {
16
17
const bar = < ActionBar > ( < any > parent ) ;
17
18
const childView = < any > child ;
18
19
19
- if ( child instanceof NavigationButton ) {
20
+ if ( child instanceof InvisibleNode ) {
21
+ return ;
22
+ } else if ( child instanceof NavigationButton ) {
20
23
bar . navigationButton = childView ;
21
24
childView . parent = bar ;
22
25
} else if ( child instanceof ActionItem ) {
@@ -30,7 +33,9 @@ const actionBarMeta: ViewClassMeta = {
30
33
const bar = < ActionBar > ( < any > parent ) ;
31
34
const childView = < any > child ;
32
35
33
- if ( child instanceof NavigationButton ) {
36
+ if ( child instanceof InvisibleNode ) {
37
+ return ;
38
+ } else if ( child instanceof NavigationButton ) {
34
39
if ( bar . navigationButton === childView ) {
35
40
bar . navigationButton = null ;
36
41
}
You can’t perform that action at this time.
0 commit comments