I have a button that copies text into clipboard, I need to show bootstraps tooltip when user clicks on the button to indicate the text was copied successfully.
<a onclick="copyText()" role="button" data-toggle="tooltip" data-theme="dark" data-trigger="click" title="Link Copied">
<i class="fas fa-share-alt"></i>
</a>
However I don't want the user to click once again on the button to hide the tooltip because that would unnecessarily copy the text another time. Rather I'd like simply to hide the tooltip when the user clicks away or move the cursor out of the button.
Is it possible to do that?
You can use Bootstrap
MethodsandEventsAPIs as follows.