Skip to content

Commit

Permalink
fix: remove item before open link
Browse files Browse the repository at this point in the history
  • Loading branch information
cnwangjie committed Aug 23, 2019
1 parent 79e4727 commit f063e18
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/store/lists.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ export default {
itemClicked({dispatch, state}, [listIndex, tabIndex]) {
const action = state.opts.itemClickAction
if (action === 'open-and-remove') {
return dispatch('removeTab', [listIndex, tabIndex])
setTimeout(() => {
dispatch('removeTab', [listIndex, tabIndex])
}, 0)
}
},
removeList({commit, state}, listIndex) {
Expand Down

0 comments on commit f063e18

Please sign in to comment.