Skip to content

Commit

Permalink
fix clipboard icon not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
Harsh0707005 committed Oct 7, 2024
1 parent 2f7184e commit fcd21b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions site/assets/js/partials/code-examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ export default () => {
const originalXhref = iconFirstChild.getAttributeNS(namespace, 'href')
const originalTitle = event.trigger.title

if (originalXhref == "#check2") return;

tooltipBtn.setContent({ '.tooltip-inner': 'Copied!' })
event.trigger.addEventListener('hidden.bs.tooltip', () => {
tooltipBtn.setContent({ '.tooltip-inner': btnTitle })
Expand Down

0 comments on commit fcd21b9

Please sign in to comment.