File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ function initializeBottomSheetDialogFragment() {
118
118
if ( options . options ) {
119
119
const creationOptions = options . options ;
120
120
this . _transparent = creationOptions . transparent ;
121
- this . _dismissOnDraggingDownSheet = creationOptions . dismissOnDraggingDownSheet ;
121
+ this . _dismissOnDraggingDownSheet = creationOptions . dismissOnDraggingDownSheet !== false ;
122
122
if ( creationOptions . dismissOnBackgroundTap !== undefined ) {
123
123
dialog . setCanceledOnTouchOutside ( creationOptions . dismissOnBackgroundTap ) ;
124
124
}
@@ -157,7 +157,7 @@ function initializeBottomSheetDialogFragment() {
157
157
} , 0 ) ;
158
158
}
159
159
160
- if ( this . _dismissOnDraggingDownSheet !== undefined ) {
160
+ if ( this . _dismissOnDraggingDownSheet ) {
161
161
const view = this . getDialog ( ) . findViewById ( getId ( 'design_bottom_sheet' ) ) ;
162
162
const behavior = com . google . android . material . bottomsheet . BottomSheetBehavior . from ( view ) ;
163
163
// prevent hiding the bottom sheet by
You can’t perform that action at this time.
0 commit comments