From 50b2330c8d588931a245222ccc4f5875b57cb8b6 Mon Sep 17 00:00:00 2001 From: Darin Kelkhoff Date: Mon, 10 Jul 2023 14:54:00 -0500 Subject: [PATCH] Make '.' not open command menu in input type=number fields --- src/CommandMenu.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CommandMenu.tsx b/src/CommandMenu.tsx index 1b6311b..6d672f2 100644 --- a/src/CommandMenu.tsx +++ b/src/CommandMenu.tsx @@ -78,7 +78,7 @@ const CommandMenu = ({metaData}: Props) => // if a dot pressed, not from a "text" element, then toggle command menu // /////////////////////////////////////////////////////////////////////////// const type = (e.target as any).type; - if (type !== "text" && type !== "textarea" && type !== "input" && type !== "search") + if (type !== "text" && type !== "textarea" && type !== "input" && type !== "search" && type !== "number") { if (e.key === "." && !keyboardHelpOpen) {