mirror of
https://github.com/Kingsrook/qqq-frontend-material-dashboard.git
synced 2025-07-18 05:10: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 //
|
// if a dot pressed, not from a "text" element, then toggle command menu //
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
const type = (e.target as any).type;
|
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)
|
if (e.key === "." && !keyboardHelpOpen)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user