Don't activate tab when clicking its close button
This commit is contained in:
parent
7dd4b2aa98
commit
c26d32be47
1 changed files with 1 additions and 0 deletions
1
index.js
1
index.js
|
@ -278,6 +278,7 @@ const TabPrivate = {
|
|||
const tabMouseDownHandler = function (e) {
|
||||
if (this.isClosed) return;
|
||||
if (e.which === 1) {
|
||||
if (e.target.matches("button")) return;
|
||||
this.activate();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue