From 57e3bf6f9208e3fd4b67a4cba7adb1477b378dab Mon Sep 17 00:00:00 2001 From: Liam Best Date: Thu, 26 Sep 2019 15:51:50 +1000 Subject: [PATCH] Add a title to the span for hover --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index 0ba2357..8d088cf 100644 --- a/index.js +++ b/index.js @@ -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; +