Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: fix keyboard jump on tap in dropdown

Ammar Ahmed4ed6bdd66834
diff --git a/packages/editor/src/toolbar/components/dropdown.tsx b/packages/editor/src/toolbar/components/dropdown.tsx
index 345399021..e64acfb9b 100644
--- a/packages/editor/src/toolbar/components/dropdown.tsx
+++ b/packages/editor/src/toolbar/components/dropdown.tsx
@@ -124,6 +124,11 @@ export function Dropdown(props: DropdownProps) {
}}
blocking={!isMobile}
focusOnRender={!isMobile}
+ onMouseDown={(e) => {
+ if (globalThis.keyboardShown) {
+ e.preventDefault();
+ }
+ }}
sx={{
minWidth: menuWidth,
maxWidth: isBottom ? "95vw" : "auto",