Skip to content

Commit

Permalink
fix: 修复点击关闭会触发选中事件的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
pansinm committed Jun 29, 2021
1 parent 29dc62b commit ff023b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/chrome-tabs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ class ChromeTabs {

setTabCloseEventListener(tabEl: HTMLElement) {
tabEl.querySelector(".chrome-tab-close")!.addEventListener("click", (_) => {
_.stopImmediatePropagation();
// this.removeTab(tabEl);
this.emit("tabClose", { tabEl });
});
Expand Down

0 comments on commit ff023b5

Please sign in to comment.