diff options
author | andrewdkim <adkim414@gmail.com> | 2019-08-12 15:18:19 -0400 |
---|---|---|
committer | andrewdkim <adkim414@gmail.com> | 2019-08-12 15:18:19 -0400 |
commit | bfe1be9425fed19be30ebf21bcdd7eadf5844c28 (patch) | |
tree | 0de5874c83a719616413c0c66a39b667a5f42267 /src/client/views/ContextMenuItem.tsx | |
parent | c7e258d9d56990daec490b239e4103f9ca9d521a (diff) | |
parent | 3aea955ae56c1aa0611de09c4a013e9dc5c86c42 (diff) |
pulled from master
Diffstat (limited to 'src/client/views/ContextMenuItem.tsx')
-rw-r--r-- | src/client/views/ContextMenuItem.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/ContextMenuItem.tsx b/src/client/views/ContextMenuItem.tsx index a1787e78f..90f7be33f 100644 --- a/src/client/views/ContextMenuItem.tsx +++ b/src/client/views/ContextMenuItem.tsx @@ -39,13 +39,13 @@ export class ContextMenuItem extends React.Component<ContextMenuProps & { select handleEvent = async (e: React.MouseEvent<HTMLDivElement>) => { if ("event" in this.props) { + this.props.closeMenu && this.props.closeMenu(); let batch: UndoManager.Batch | undefined; if (this.props.undoable !== false) { batch = UndoManager.StartBatch(`Context menu event: ${this.props.description}`); } await this.props.event(); batch && batch.end(); - this.props.closeMenu && this.props.closeMenu(); } } |