diff --git a/public/app/features/dashboard/components/SubMenu/SubMenu.tsx b/public/app/features/dashboard/components/SubMenu/SubMenu.tsx index 6f0488ec342..fcc57a32a4f 100644 --- a/public/app/features/dashboard/components/SubMenu/SubMenu.tsx +++ b/public/app/features/dashboard/components/SubMenu/SubMenu.tsx @@ -43,6 +43,10 @@ class SubMenuUnConnected extends PureComponent { this.forceUpdate(); }; + disableSubmitOnEnter = (e: React.FormEvent) => { + e.preventDefault(); + }; + render() { const { dashboard, variables, links, annotations, theme } = this.props; @@ -56,7 +60,7 @@ class SubMenuUnConnected extends PureComponent { return (
-
+