MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / shouldSwitch

Method shouldSwitch

core/src/components/tabs/tabs.tsx:198–201  ·  view source on GitHub ↗
(selectedTab: HTMLIonTabElement | undefined)

Source from the content-addressed store, hash-verified

196 }
197
198 private shouldSwitch(selectedTab: HTMLIonTabElement | undefined): selectedTab is HTMLIonTabElement {
199 const leavingTab = this.selectedTab;
200 return selectedTab !== undefined && selectedTab !== leavingTab && !this.transitioning;
201 }
202
203 private get tabs() {
204 return Array.from(this.el.querySelectorAll('ion-tab'));

Callers 2

selectMethod · 0.95
setRouteIdMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected