Skip to content

Commit 740d50f

Browse files
author
Alexander Mai
committed
fix: fixed pr comments
1 parent 89a2321 commit 740d50f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bottomsheet/bottomsheet.android.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ function initializeBottomSheetDialogFragment() {
118118
if (options.options) {
119119
const creationOptions = options.options;
120120
this._transparent = creationOptions.transparent;
121-
this._dismissOnDraggingDownSheet = creationOptions.dismissOnDraggingDownSheet;
121+
this._dismissOnDraggingDownSheet = creationOptions.dismissOnDraggingDownSheet !== false;
122122
if (creationOptions.dismissOnBackgroundTap !== undefined) {
123123
dialog.setCanceledOnTouchOutside(creationOptions.dismissOnBackgroundTap);
124124
}
@@ -157,7 +157,7 @@ function initializeBottomSheetDialogFragment() {
157157
}, 0);
158158
}
159159

160-
if (this._dismissOnDraggingDownSheet !== undefined) {
160+
if (this._dismissOnDraggingDownSheet) {
161161
const view = this.getDialog().findViewById(getId('design_bottom_sheet'));
162162
const behavior = com.google.android.material.bottomsheet.BottomSheetBehavior.from(view);
163163
// prevent hiding the bottom sheet by

0 commit comments

Comments
 (0)