Fixed force when calling tab.close()

This commit is contained in:
Robin Riclet 2017-04-04 14:33:57 +02:00
parent a2a5ae7f3c
commit 58258cbc65

View file

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