mirror of
https://github.com/Kingsrook/qqq-frontend-material-dashboard.git
synced 2025-07-17 21:00:45 +00:00
Make '.' not open command menu in input type=number fields
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user