diff --git a/index.js b/index.js index 2ffb243..6d49ae2 100644 --- a/index.js +++ b/index.js @@ -268,7 +268,7 @@ const TabPrivate = { let button = container.appendChild(document.createElement("button")); button.classList.add(`${tabClass}-button-close`); button.innerHTML = this.tabGroup.options.closeButtonText; - button.addEventListener("click", this.close.bind(this), false); + button.addEventListener("click", this.close.bind(this, false), false); } }, @@ -313,4 +313,4 @@ const TabPrivate = { } }; -module.exports = TabGroup; \ No newline at end of file +module.exports = TabGroup;