diff --git a/browser/components/loop/content/js/panel.js b/browser/components/loop/content/js/panel.js index cd76c935522e..e98c7dfcb26d 100644 --- a/browser/components/loop/content/js/panel.js +++ b/browser/components/loop/content/js/panel.js @@ -921,12 +921,17 @@ loop.panel = (function(_, mozL10n) { window.removeEventListener("GettingStartedSeen", this._gettingStartedSeen); }, + handleContextMenu: function(e) { + e.preventDefault(); + }, + render: function() { var NotificationListView = sharedViews.NotificationListView; if (!this.state.gettingStartedSeen) { return ( - React.createElement("div", {className: "fte-get-started-container"}, + React.createElement("div", {className: "fte-get-started-container", + onContextMenu: this.handleContextMenu}, React.createElement(NotificationListView, { clearOnDocumentHidden: true, notifications: this.props.notifications}), @@ -941,7 +946,8 @@ loop.panel = (function(_, mozL10n) { } return ( - React.createElement("div", {className: "panel-content"}, + React.createElement("div", {className: "panel-content", + onContextMenu: this.handleContextMenu}, React.createElement("div", {className: "beta-ribbon"}), React.createElement(NotificationListView, { clearOnDocumentHidden: true, diff --git a/browser/components/loop/content/js/panel.jsx b/browser/components/loop/content/js/panel.jsx index 5c4755023897..a0821b918611 100644 --- a/browser/components/loop/content/js/panel.jsx +++ b/browser/components/loop/content/js/panel.jsx @@ -921,12 +921,17 @@ loop.panel = (function(_, mozL10n) { window.removeEventListener("GettingStartedSeen", this._gettingStartedSeen); }, + handleContextMenu: function(e) { + e.preventDefault(); + }, + render: function() { var NotificationListView = sharedViews.NotificationListView; if (!this.state.gettingStartedSeen) { return ( -
+
@@ -941,7 +946,8 @@ loop.panel = (function(_, mozL10n) { } return ( -
+
+