Skip to content

Commit

Permalink
fix: history items removing shows selection dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
sentialx committed Oct 1, 2019
1 parent 8ba3e0a commit e1f1502
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 13 deletions.
6 changes: 0 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@
"node-fetch": "^2.6.0",
"node-vibrant": "^3.2.0-alpha",
"node-window-manager": "1.1.0",
"preact": "^10.0.0-rc.3",
"prettier": "1.18.2",
"pretty-bytes": "5.3.0",
"react": "16.10.1",
Expand Down
3 changes: 2 additions & 1 deletion src/renderer/views/history/components/HistoryItem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ const onTitleClick = (url: string) => (e: React.MouseEvent) => {
}
};

const onRemoveClick = (item: IHistoryItem) => () => {
const onRemoveClick = (item: IHistoryItem) => (e: React.MouseEvent) => {
e.stopPropagation();
store.removeItem(item._id);
};

Expand Down
5 changes: 0 additions & 5 deletions webpack.config.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,6 @@ const config = {
plugins: [],
};

if (!dev) {
config.resolve.alias.react = 'preact/compat';
config.resolve.alias['react-dom'] = 'preact/compat';
}

function getConfig(...cfg) {
return merge(config, ...cfg);
}
Expand Down

0 comments on commit e1f1502

Please sign in to comment.