<ul dir="auto">
<li>Electron version: 2.0.0-beta.1</li>
<li>Operating system: MacOS 10.12</li>
</ul>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">Context menu MenuItem click event fires on click</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">Event doesnt fire</p>
<h3 dir="auto">How to reproduce</h3>
<p dir="auto"><a href="https://github.com/pfrazee/electron-bug-context-menu-click">https://github.com/pfrazee/electron-bug-context-menu-click</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="git clone https://github.com/pfrazee/electron-bug-context-menu-click
cd electron-bug-context-menu-click
npm install
npm start"><pre class="notranslate"><code class="notranslate">git clone https://github.com/pfrazee/electron-bug-context-menu-click
cd electron-bug-context-menu-click
npm install
npm start
</code></pre></div>
<p dir="auto">Right click, select 'MenuItem1'. A log event should occur but wont.</p>
<ul dir="auto">
<li>Electron version: Electron built at <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/electron/electron/commit/aea06ed95f0ae88b33a5853caa76cf921b11a7af/hovercard" href="https://github.com/electron/electron/commit/aea06ed95f0ae88b33a5853caa76cf921b11a7af"><tt>aea06ed</tt></a></li>
<li>Operating system: macOS 10.13.2</li>
</ul>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto"><code class="notranslate">MenuItem</code> click handlers should get called in the popped up context menu.</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">Click handlers never getting called back.</p>
<h3 dir="auto">How to reproduce</h3>
<p dir="auto">Open a popup in the main window:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="window.webContents.on('context-menu', (event) =&gt; {
    const menu = new Menu()
    menu.append(new MenuItem({label: 'MenuItem1', click() { console.log('item 1 clicked') }}))
    menu.append(new MenuItem({type: 'separator'}))
    menu.append(new MenuItem({label: 'MenuItem2', type: 'checkbox', checked: true}))
    menu.popup(mainWindow)
  })"><pre class="notranslate"><code class="notranslate">window.webContents.on('context-menu', (event) =&gt; {
    const menu = new Menu()
    menu.append(new MenuItem({label: 'MenuItem1', click() { console.log('item 1 clicked') }}))
    menu.append(new MenuItem({type: 'separator'}))
    menu.append(new MenuItem({label: 'MenuItem2', type: 'checkbox', checked: true}))
    menu.popup(mainWindow)
  })
</code></pre></div>
<p dir="auto">Right click on the running window and select <code class="notranslate">MenuItem1</code>, the log <code class="notranslate">item 1 clicked</code> should print but doesn't.</p>