We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 534ce30 + 257f0eb commit ed0833bCopy full SHA for ed0833b
src/relative-time-element.ts
@@ -440,9 +440,9 @@ export class RelativeTimeElement extends HTMLElement implements Intl.DateTimeFor
440
return
441
}
442
const now = Date.now()
443
- if (!this.#customTitle && !this.noTitle) {
+ if (!this.#customTitle) {
444
newTitle = this.#getFormattedTitle(date) || ''
445
- if (newTitle) this.setAttribute('title', newTitle)
+ if (newTitle && !this.noTitle) this.setAttribute('title', newTitle)
446
447
448
const duration = elapsedTime(date, this.precision, now)
0 commit comments