Merge branch 'main' into patch-1

This commit is contained in:
Julien Déramond 2025-02-12 18:40:54 +01:00 committed by GitHub
commit ee280bcc5d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 3 deletions

View File

@ -1,11 +1,11 @@
const fixtureId = 'fixture'
const FIXTURE_ID = 'fixture'
export const getFixture = () => {
let fixtureElement = document.getElementById(fixtureId)
let fixtureElement = document.getElementById(FIXTURE_ID)
if (!fixtureElement) {
fixtureElement = document.createElement('div')
fixtureElement.setAttribute('id', fixtureId)
fixtureElement.setAttribute('id', FIXTURE_ID)
fixtureElement.style.position = 'absolute'
fixtureElement.style.top = '-10000px'
fixtureElement.style.left = '-10000px'

View File

@ -63,6 +63,11 @@ export default () => {
const namespace = 'http://www.w3.org/1999/xlink'
const originalXhref = iconFirstChild.getAttributeNS(namespace, 'href')
const originalTitle = event.trigger.title
const isCheckIconVisible = originalXhref === '#check2'
if (isCheckIconVisible) {
return
}
tooltipBtn.setContent({ '.tooltip-inner': 'Copied!' })
event.trigger.addEventListener('hidden.bs.tooltip', () => {