MCPcopy Create free account
hub / github.com/ionic-team/ionic-framework / noAnimation

Function noAnimation

core/src/utils/transition/index.ts:149–166  ·  view source on GitHub ↗
(opts: TransitionOptions)

Source from the content-addressed store, hash-verified

147};
148
149const noAnimation = async (opts: TransitionOptions): Promise<TransitionResult> => {
150 const enteringEl = opts.enteringEl;
151 const leavingEl = opts.leavingEl;
152 const focusManagerEnabled = config.get('focusManagerPriority', false);
153
154 /**
155 * If the focus manager is enabled then we need to wait for Ionic components to be
156 * rendered otherwise the component to focus may not be focused because it is hidden.
157 */
158 await waitForReady(opts, focusManagerEnabled);
159
160 fireWillEvents(enteringEl, leavingEl);
161 fireDidEvents(enteringEl, leavingEl);
162
163 return {
164 hasCompleted: true,
165 };
166};
167
168const waitForReady = async (opts: TransitionOptions, defaultDeep: boolean) => {
169 const deep = opts.deepWait !== undefined ? opts.deepWait : defaultDeep;

Callers 1

runTransitionFunction · 0.85

Calls 4

waitForReadyFunction · 0.85
fireWillEventsFunction · 0.85
fireDidEventsFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected