fix(segment-view): don't query for disabled contents

This commit is contained in:
Brandy Carney
2024-09-23 19:05:00 -04:00
parent f07a5b1039
commit b75650b2f7

View File

@@ -62,7 +62,7 @@ export class SegmentView implements ComponentInterface {
}
private getSegmentContents(): HTMLIonSegmentContentElement[] {
return Array.from(this.el.querySelectorAll('ion-segment-content'));
return Array.from(this.el.querySelectorAll('ion-segment-content:not([disabled])'));
}
private getSegmentButtonById(id: string) {