From d9fddcbbd258983511588b10693979c773df9eea Mon Sep 17 00:00:00 2001 From: Derrick Marcey Date: Tue, 19 Nov 2019 09:24:56 -0500 Subject: [PATCH] Don't set the title attribute if the callback is due to a change to the title attribute. --- src/extended-time-element.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extended-time-element.js b/src/extended-time-element.js index 7086015..70e3226 100644 --- a/src/extended-time-element.js +++ b/src/extended-time-element.js @@ -35,7 +35,7 @@ export default class ExtendedTimeElement extends HTMLElement { const title = this.getFormattedTitle() const currentTitle = this.getAttribute('title') - if (title && (!currentTitle || currentTitle === oldTitle)) { + if (attrName !== 'title' && title && (!currentTitle || currentTitle === oldTitle)) { this.setAttribute('title', title) }