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

Function isInActivePage

core/src/components/router/utils/dom.ts:100–106  ·  view source on GitHub ↗
(el: HTMLElement)

Source from the content-addressed store, hash-verified

98 * so plain anchors still work.
99 */
100const isInActivePage = (el: HTMLElement): boolean => {
101 const page = el.closest<HTMLElement>('.ion-page');
102 if (page === null) {
103 return document.querySelector('.ion-page') === null;
104 }
105 return page.closest('.ion-page-hidden, .tab-hidden') === null;
106};
107
108/**
109 * Polls across animation frames for an element matching `fragment` that lives

Callers 1

findFragmentTargetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected