tooltip inside popover stays after popover is closed - ZeroClipboard <p>I'm trying to add buttons to popover that will allow user to copy content.<br/> I managed to build prototype: <a href="http://jsfiddle.net/Misiu/VUZhL/890/" rel="nofollow noreferrer">http://jsfiddle.net/Misiu/VUZhL/890/</a> but I have weird error when using tipsy inside popover:</p> <p><img src="https://i.stack.imgur.com/o5BGz.gif" alt="enter image description here"></p> <p>After clicking on <code>Click for action</code> button I get popover with 2 buttons, they both have tooltips, sometimes after clicking on button tooltip stays visible.</p> <p>My code:</p> <pre><code>$(function () { $('#example').tipsy({ title: 'data-tipsy-title', gravity: function () { return this.getAttribute('data-tipsy-gravity') || 'n'; } }); $(document).on('click', '#example, .tip', function (event) { $(this).tipsy("hide"); }); $('#example').popover({ placement: 'top', title: '', html: true, template: '&lt;div class="popover" role="tooltip"&gt;&lt;div class="arrow"&gt;&lt;/div&gt;&lt;div class="popover-content no-padding"&gt;&lt;/div&gt;&lt;/div&gt;', content: '&lt;div class="btn-group"&gt;' + '&lt;button type="button" title="link" class="btn btn-default tip number"&gt;&lt;span class="fa fa-link"&gt;&lt;/span&gt;&lt;/button&gt;' + '&lt;button type="button" class="btn btn-default tip" title="something else"&gt;&lt;span class="fa fa-copy"&gt;&lt;/span&gt;&lt;/button&gt;' + '&lt;/div&gt;' }); $('#example').on('shown.bs.popover', function () { //tipsy $('.tip').tipsy({ gravity: 's' }); //zero clipboard var clip = new ZeroClipboard($(".tip")); clip.on("copy", function (event) { var clipboard = event.clipboardData; var data = ""; if ($(event.target).hasClass("number")) { data = "1st button"+new Date() } else { data = "second"; } clipboard.setData("text/plain", data); ZeroClipboard.deactivate(); }); }) //zero clipboard ZeroClipboard.config({ hoverClass: "hover" }); }); </code></pre> <p>My questions:<br/> 1. How can this be fixed?<br/> 2. Is ZeroClipboard initialized in right place? I can't do that before, because buttons are added when popover is shown for first time.</p>