File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,11 @@ export abstract class ViewWithBottomSheetBase extends View {
67
67
protected abstract _showNativeBottomSheet ( parent : View , options : BottomSheetOptions ) ;
68
68
protected _commonShowNativeBottomSheet ( parent : View , options : BottomSheetOptions ) {
69
69
this . _getRootModalViews ( ) . push ( this ) ;
70
+ this . cssClasses . add ( CSSUtils . MODAL_ROOT_VIEW_CSS_CLASS ) ;
71
+ const modalRootViewCssClasses = CSSUtils . getSystemCssClasses ( ) ;
72
+ modalRootViewCssClasses . forEach ( ( c ) => this . cssClasses . add ( c ) ) ;
73
+
74
+ // (parent as any)._modal = this;
70
75
options . context = options . context || { } ;
71
76
this . _bottomSheetContext = options . context ;
72
77
this . _onDismissBottomSheetCallback = ( ...originalArgs ) => {
@@ -134,10 +139,6 @@ export abstract class ViewWithBottomSheetBase extends View {
134
139
: ( Builder . createViewFromEntry ( {
135
140
moduleName : options . view as string ,
136
141
} ) as ViewWithBottomSheetBase ) ;
137
- view . cssClasses . add ( CSSUtils . MODAL_ROOT_VIEW_CSS_CLASS ) ;
138
- const modalRootViewCssClasses = CSSUtils . getSystemCssClasses ( ) ;
139
- modalRootViewCssClasses . forEach ( ( c ) => view . cssClasses . add ( c ) ) ;
140
-
141
142
view . _showNativeBottomSheet ( this , options ) ;
142
143
return view ;
143
144
}
You can’t perform that action at this time.
0 commit comments