Don't activate tab when clicking its close button

This commit is contained in:
Thomas Brouard 2016-11-02 21:13:46 +01:00
parent 7dd4b2aa98
commit c26d32be47

View file

@ -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();
}
};