mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(segment-view): don't query for disabled contents
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user