From cf7b8f1a47d2a0d8586003e91ca858c4b8d11835 Mon Sep 17 00:00:00 2001 From: Juan Tejada Date: Thu, 28 Jan 2016 01:35:29 -0800 Subject: [PATCH] Prevent creation of context menu twice for nested items of OutlineView --- src/components/outline-view-item.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/outline-view-item.jsx b/src/components/outline-view-item.jsx index d87c46b50..821106e65 100644 --- a/src/components/outline-view-item.jsx +++ b/src/components/outline-view-item.jsx @@ -149,7 +149,8 @@ class OutlineViewItem extends Component { } } - _onShowContextMenu = ()=> { + _onShowContextMenu = (event)=> { + event.stopPropagation() const item = this.props.item; const name = item.name; const {remote} = require('electron');