(opts: TransitionOptions)
| 147 | }; |
| 148 | |
| 149 | const 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 | |
| 168 | const waitForReady = async (opts: TransitionOptions, defaultDeep: boolean) => { |
| 169 | const deep = opts.deepWait !== undefined ? opts.deepWait : defaultDeep; |
no test coverage detected