Skip to content

Commit

Permalink
fix: Move event handling to before the 'preventedDefault' property is…
Browse files Browse the repository at this point in the history
… read (#435)
  • Loading branch information
lawgsy authored Mar 3, 2021
1 parent dc1bcb8 commit be8dc44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/main/components/Cerebro/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,10 @@ class Cerebro extends Component {
this.props.actions.reset()
trackSelectItem(item.plugin)
const event = wrapEvent(realEvent)
item.onSelect(event)
if (!event.defaultPrevented) {
this.electronWindow.hide()
}
item.onSelect(event)
}

/**
Expand Down

0 comments on commit be8dc44

Please sign in to comment.