editor: fix keyboard opens on drag in editor

This commit is contained in:
Ammar Ahmed
2024-02-23 10:52:14 +05:00
committed by Abdullah Atta
parent 513b4016b9
commit 513d6b3d72

View File

@@ -239,10 +239,14 @@ const Tiptap = ({ settings }: { settings: Settings }) => {
/>
<div
onTouchEnd={(e) => {
e.preventDefault();
onClick={(e) => {
onClickBottomArea();
}}
onMouseDown={(e) => {
if (globalThis.keyboardShown) {
e.preventDefault();
}
}}
style={{
flexGrow: 1,
width: "100%",