From c26d32be4787d5487a33ff9eb89a6c4f691175e0 Mon Sep 17 00:00:00 2001 From: Thomas Brouard Date: Wed, 2 Nov 2016 21:13:46 +0100 Subject: [PATCH] Don't activate tab when clicking its close button --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 88fcaa0..51315b3 100644 --- a/index.js +++ b/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(); } };