mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-01 19:49:54 +02:00
editor: fix keyboard opens on drag in editor
This commit is contained in:
committed by
Abdullah Atta
parent
513b4016b9
commit
513d6b3d72
@@ -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%",
|
||||
|
||||
Reference in New Issue
Block a user