diff --git a/packages/core/ui/segmented-bar/index.ios.ts b/packages/core/ui/segmented-bar/index.ios.ts index 7c59590d0..bcf2cc736 100644 --- a/packages/core/ui/segmented-bar/index.ios.ts +++ b/packages/core/ui/segmented-bar/index.ios.ts @@ -8,7 +8,7 @@ export * from './segmented-bar-common'; export class SegmentedBarItem extends SegmentedBarItemBase { public _update() { const parent = this.parent; - if (parent) { + if (parent?.ios) { const tabIndex = parent.items.indexOf(this); let title = this.title; title = title === null || title === undefined ? '' : title;