From 471d1a683fd1fd2c41fdb6a7a4e76ee00f98e53c Mon Sep 17 00:00:00 2001 From: Theodore Abshire Date: Wed, 8 May 2019 10:48:15 -0700 Subject: [PATCH] Fix unsupported button tooltips. The refactoring that allowed asset cards to reload their buttons also ended up breaking the tooltips on unsupported buttons. This fixes that bug. Change-Id: Ib33845553de99c8a134529b003c3bd3d319d99bd --- demo/asset_card.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/demo/asset_card.js b/demo/asset_card.js index cb0943d38d..0971643255 100644 --- a/demo/asset_card.js +++ b/demo/asset_card.js @@ -76,7 +76,6 @@ class AssetCard { this.actions_.classList.add('mdl-card__actions'); this.actions_.classList.add('mdl-card--border'); this.card_.appendChild(this.actions_); - this.remakeButtons(); const progressContainer = document.createElement('div'); this.progressBar_.classList.add('hidden'); @@ -86,6 +85,9 @@ class AssetCard { this.card_.appendChild(progressContainer); parentDiv.appendChild(this.card_); + // Remake buttons AFTER appending to parent div, so that any tooltips can + // be placed. + this.remakeButtons(); } /**