about summary refs log tree commit diff
path: root/src/components/Dialog/index.tsx
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2024-03-19 20:21:25 -0700
committerGitHub <noreply@github.com>2024-03-19 20:21:25 -0700
commit2e2fae378af09682370e9b4ebf59d32cae1b848c (patch)
tree8a29983c4cdd07bada12374179b4247fbf6c7434 /src/components/Dialog/index.tsx
parentb6c9d34e452405e8e735599967d6ebfb2abe99e9 (diff)
downloadvoidsky-2e2fae378af09682370e9b4ebf59d32cae1b848c.tar.zst
Set keyboardDismisMode to interactive on the report dialog (#3288)
Diffstat (limited to 'src/components/Dialog/index.tsx')
-rw-r--r--src/components/Dialog/index.tsx8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/components/Dialog/index.tsx b/src/components/Dialog/index.tsx
index 0da2919c5..a85a1c4fd 100644
--- a/src/components/Dialog/index.tsx
+++ b/src/components/Dialog/index.tsx
@@ -206,12 +206,16 @@ export function Inner({children, style}: DialogInnerProps) {
   )
 }
 
-export function ScrollableInner({children, style}: DialogInnerProps) {
+export function ScrollableInner({
+  children,
+  keyboardDismissMode,
+  style,
+}: DialogInnerProps) {
   const insets = useSafeAreaInsets()
   return (
     <BottomSheetScrollView
       keyboardShouldPersistTaps="handled"
-      keyboardDismissMode="on-drag"
+      keyboardDismissMode={keyboardDismissMode || 'on-drag'}
       style={[
         a.flex_1, // main diff is this
         a.p_xl,