mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 21:01:34 +08:00
fix(ios): segmented bar nativeView check (#10023)
This commit is contained in:

committed by
Nathan Walker

parent
59fb3d9457
commit
3ce5362a04
@ -8,7 +8,7 @@ export * from './segmented-bar-common';
|
|||||||
export class SegmentedBarItem extends SegmentedBarItemBase {
|
export class SegmentedBarItem extends SegmentedBarItemBase {
|
||||||
public _update() {
|
public _update() {
|
||||||
const parent = <SegmentedBar>this.parent;
|
const parent = <SegmentedBar>this.parent;
|
||||||
if (parent) {
|
if (parent?.ios) {
|
||||||
const tabIndex = parent.items.indexOf(this);
|
const tabIndex = parent.items.indexOf(this);
|
||||||
let title = this.title;
|
let title = this.title;
|
||||||
title = title === null || title === undefined ? '' : title;
|
title = title === null || title === undefined ? '' : title;
|
||||||
|
Reference in New Issue
Block a user