Add a title to the span for hover

This commit is contained in:
Liam Best 2019-09-26 15:51:50 +10:00
parent 75b215b263
commit 57e3bf6f92

View file

@ -181,6 +181,7 @@ class Tab extends EventEmitter {
if (this.isClosed) return;
let span = this.tabElements.title;
span.innerHTML = title;
span.title = title;
this.title = title;
this.emit("title-changed", title, this);
return this;
@ -418,3 +419,4 @@ const TabPrivate = {
};
module.exports = TabGroup;