mobile: fix keyboard jump on tap in dropdown

This commit is contained in:
Ammar Ahmed
2024-02-22 13:15:44 +05:00
parent 1c206fb058
commit 2804710a8d

View File

@@ -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",