File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,8 @@ export interface IonicConfig {
108108 */
109109 toastDuration ?: number ;
110110
111+ appRootClass ?: string ;
112+
111113 /**
112114 * Overrides the default "animation" of all `ion-nav` and `ion-router-outlet` across the whole application.
113115 * This prop allows to replace the default transition and provide a custom one that applies to all navigation outlets.
Original file line number Diff line number Diff line change 1+ import { config } from '../global/config' ;
12import type { ComponentRef , FrameworkDelegate } from '../interface' ;
23
34import { componentOnReady } from './helpers' ;
@@ -128,7 +129,8 @@ export const CoreDelegate = () => {
128129 * Get the root of the app and
129130 * add the overlay there.
130131 */
131- const app = document . querySelector ( 'ion-app, .ion-app' ) || document . body ;
132+ const appRootClass = config . get ( 'appRootClass' , 'ion-app' ) ;
133+ const app = document . querySelector ( `ion-app, ${ appRootClass } ` ) || document . body ;
132134
133135 /**
134136 * Create a placeholder comment so that
You can’t perform that action at this time.
0 commit comments