Closed egeland closed 8 years ago
Interesting.. The tooltip has some other bugs as well. I will have a look at it..
It's because of this implementation:
componentHandler.upgradeElement(target.parentNode.querySelector('.mdl-tooltip'));
It selects only the first. Changed it to:
componentHandler.upgradeElement(target.parentNode.querySelector(`.mdl-tooltip[for="${this.element.id}"]`));
If you put more than one tooltip on something inside the same
div
, only the first one works.The tooltip will appear on the 'mood' icon, but nothing for the 'person'.