Skip to content

Commit 0f65246

Browse files
committed
fix(android): default dismissOnDraggingDownSheet value
1 parent b7badb9 commit 0f65246

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bottomsheet/bottomsheet.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export class ViewWithBottomSheet extends ViewWithBottomSheetBase {
115115

116116
const behavior = com.google.android.material.bottomsheet.BottomSheetBehavior.from(view);
117117
// prevent hiding the bottom sheet by
118-
const dismissOnDraggingDownSheet = bottomSheetOptions.options && bottomSheetOptions.options.dismissOnDraggingDownSheet;
118+
const dismissOnDraggingDownSheet = !bottomSheetOptions.options || bottomSheetOptions.options.dismissOnDraggingDownSheet !== false;
119119
behavior.setHideable(dismissOnDraggingDownSheet);
120120
if (!dismissOnDraggingDownSheet) {
121121
// directly expand the bottom sheet after start

0 commit comments

Comments
 (0)