You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The cloning part works fine -- if you look at the resulting DOM, the tooltip is in the right place:
The problem is that because you did a literal clone, and the tooltip targets a specific element (for="id_1"):, your cloned tooltip still targets the first span, so you'll have to update the IDs with something like:
var newPlace = document.querySelector('#new-place');
newPlace.querySelector('span').id = 'id_2';
newPlace.querySelector('paper-tooltip').for = 'id_2';
I'd like to clone div including
tool-tip
to other element.See live demo.
I'd expect that cloned element also has tooltip (but it doesn't).
Live Demo
http://jsbin.com/vololicezu/1/edit?html,output
Browsers Affected
The text was updated successfully, but these errors were encountered: