diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-06-28 13:37:19 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-28 13:37:19 -0500 |
commit | df3589f207b54282b8345996aa1a90e8ab5d50b8 (patch) | |
tree | 088294ad6e5bf990c53d99e40e3cdd44b233a3bd /src | |
parent | 8d32f3de3746192a06d9c9fe16c7ed9d891c5d54 (diff) | |
download | voidsky-df3589f207b54282b8345996aa1a90e8ab5d50b8.tar.zst |
Fix: hide the keyboard before showing the discard modal (#925)
Diffstat (limited to 'src')
-rw-r--r-- | src/view/com/composer/Composer.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/view/com/composer/Composer.tsx b/src/view/com/composer/Composer.tsx index 700c863a9..caece3476 100644 --- a/src/view/com/composer/Composer.tsx +++ b/src/view/com/composer/Composer.tsx @@ -2,6 +2,7 @@ import React, {useCallback, useEffect, useMemo, useRef, useState} from 'react' import {observer} from 'mobx-react-lite' import { ActivityIndicator, + Keyboard, KeyboardAvoidingView, Platform, ScrollView, @@ -95,6 +96,9 @@ export const ComposePost = observer(function ComposePost({ if (store.shell.activeModals.some(modal => modal.name === 'confirm')) { store.shell.closeModal() } + if (Keyboard) { + Keyboard.dismiss() + } store.shell.openModal({ name: 'confirm', title: 'Discard draft', |