Commit a45d4ec
committed
fix: prevent double clipboard alert on copy action
render-facade.js could be loaded more than once (registered under
multiple handles when charts from different libraries appear on the
same page). The copy ClipboardJS instance had no guard against
double-initialization, causing the success alert to fire twice.
Added vizClipboard2 guard to mirror the existing vizClipboard1
pattern already used for the shortcode copy button.1 parent 13b7677 commit a45d4ec
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | | - | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | | - | |
21 | | - | |
| 21 | + | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
0 commit comments