Skip to content

Commit 293b321

Browse files
committed
(All) Fix dismissOnClickOutside bug #16
1 parent 7debd18 commit 293b321

File tree

1 file changed

+1
-1
lines changed
  • core/src/main/java/com/maxkeppeker/sheets/core/views/base

1 file changed

+1
-1
lines changed

core/src/main/java/com/maxkeppeker/sheets/core/views/base/DialogBase.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ fun DialogBase(
7474
.clickable(
7575
interactionSource = boxInteractionSource,
7676
indication = null,
77-
onClick = state::dismiss
77+
onClick = { if (properties.dismissOnClickOutside) state.dismiss() }
7878
)
7979
) {
8080
Surface(

0 commit comments

Comments
 (0)