diff --git a/browser/components/NoteItemSimple.js b/browser/components/NoteItemSimple.js index 42cbe51ae..f13cd571f 100644 --- a/browser/components/NoteItemSimple.js +++ b/browser/components/NoteItemSimple.js @@ -10,15 +10,17 @@ import styles from './NoteItemSimple.styl' * @param {boolean} isActive * @param {Object} note * @param {Function} handleNoteClick + * @param {Function} handleNoteContextMenu * @param {Function} handleDragStart */ -const NoteItemSimple = ({ isActive, note, handleNoteClick, handleDragStart }) => ( +const NoteItemSimple = ({ isActive, note, handleNoteClick, handleNoteContextMenu, handleDragStart }) => (
handleNoteClick(e, `${note.storage}-${note.key}`)} + onContextMenu={e => handleNoteContextMenu(e, `${note.storage}-${note.key}`)} onDragStart={e => handleDragStart(e, note)} draggable='true' > diff --git a/browser/main/NoteList/index.js b/browser/main/NoteList/index.js index 5729d476f..12ba7af3b 100644 --- a/browser/main/NoteList/index.js +++ b/browser/main/NoteList/index.js @@ -510,6 +510,7 @@ class NoteList extends React.Component { isActive={isActive} note={note} key={key} + handleNoteContextMenu={this.handleNoteContextMenu.bind(this)} handleNoteClick={this.handleNoteClick.bind(this)} handleDragStart={this.handleDragStart.bind(this)} />