Skip to content

Commit f063e18

Browse files
committed
fix: remove item before open link
1 parent 79e4727 commit f063e18

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/app/store/lists.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,9 @@ export default {
124124
itemClicked({dispatch, state}, [listIndex, tabIndex]) {
125125
const action = state.opts.itemClickAction
126126
if (action === 'open-and-remove') {
127-
return dispatch('removeTab', [listIndex, tabIndex])
127+
setTimeout(() => {
128+
dispatch('removeTab', [listIndex, tabIndex])
129+
}, 0)
128130
}
129131
},
130132
removeList({commit, state}, listIndex) {

0 commit comments

Comments
 (0)