mirror of https://github.com/twbs/bootstrap.git
Docs: fix clipboard icon visibility issue after multiple clicks (#40917)
Co-authored-by: Julien Déramond <juderamond@gmail.com>
This commit is contained in:
parent
b7f3d6a6be
commit
c5be828d99
|
@ -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', () => {
|
||||
|
|
Loading…
Reference in New Issue