aboutsummaryrefslogtreecommitdiff
path: root/site/layouts/partials/scripts.html
diff options
context:
space:
mode:
authorJulien Déramond <[email protected]>2022-06-20 16:19:47 +0200
committerGitHub <[email protected]>2022-06-20 07:19:47 -0700
commitcfabeb71fa41a7e4438a8f769cad5286f749d9a3 (patch)
tree8f2a7061de5fdd9a715029e50c9293df2c78757b /site/layouts/partials/scripts.html
parent22503d6b21a3530d2f312c0a8c0ce1c2956fc146 (diff)
downloadbootstrap-cfabeb71fa41a7e4438a8f769cad5286f749d9a3.tar.xz
bootstrap-cfabeb71fa41a7e4438a8f769cad5286f749d9a3.zip
Fix StackBlitz Popovers and Tooltips examples (#36449)
* Fix StackBlitz Popovers and Tooltips examples * Rename shortcode example parameters * Reorder example shortcode doc params + fix Cspell * Remove 'stackblitz' param + use data-bs-title instead of title * Update site/layouts/partials/callout-warning-data-bs-title-vs-title.md Co-authored-by: Mark Otto <[email protected]> Co-authored-by: Mark Otto <[email protected]>
Diffstat (limited to 'site/layouts/partials/scripts.html')
-rw-r--r--site/layouts/partials/scripts.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/site/layouts/partials/scripts.html b/site/layouts/partials/scripts.html
index 5535d6439..477ba76e5 100644
--- a/site/layouts/partials/scripts.html
+++ b/site/layouts/partials/scripts.html
@@ -30,7 +30,7 @@
// Get extra classes for this example except '.bd-example'
const classes = Array.from(event.target.closest('.bd-code-snippet').querySelector('.bd-example').classList).filter(x => x !== 'bd-example').join(' ')
- const jsSnippet = event.target.closest('.bd-code-snippet').querySelector('.btn-edit').getAttribute('data-js-snippet')
+ const jsSnippet = event.target.closest('.bd-code-snippet').querySelector('.btn-edit').getAttribute('data-sb-js-snippet')
StackBlitzSDK.openBootstrapSnippet(htmlSnippet, jsSnippet, classes)
})
})