We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7badb9 commit 0f65246Copy full SHA for 0f65246
src/bottomsheet/bottomsheet.android.ts
@@ -115,7 +115,7 @@ export class ViewWithBottomSheet extends ViewWithBottomSheetBase {
115
116
const behavior = com.google.android.material.bottomsheet.BottomSheetBehavior.from(view);
117
// prevent hiding the bottom sheet by
118
- const dismissOnDraggingDownSheet = bottomSheetOptions.options && bottomSheetOptions.options.dismissOnDraggingDownSheet;
+ const dismissOnDraggingDownSheet = !bottomSheetOptions.options || bottomSheetOptions.options.dismissOnDraggingDownSheet !== false;
119
behavior.setHideable(dismissOnDraggingDownSheet);
120
if (!dismissOnDraggingDownSheet) {
121
// directly expand the bottom sheet after start
0 commit comments