Skip to content

Commit 8e6f322

Browse files
committed
fix repeat generate clipboard
1 parent aebcb5b commit 8e6f322

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/Widgets/DetailModal.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ protected function clipboardScript()
3636
$(e.trigger).attr('class', 'copy-btn btn btn-success').find('i').attr('class', 'feather icon-check');
3737
});
3838
39+
$(document).one('pjax:beforeReplace', function() {
40+
clipboard.destroy();
41+
clipboard = null;
42+
});
43+
3944
JS;
4045
}
4146
}

version.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,8 @@
2525
],
2626
'3.0.2' => [
2727
'修复 bug'
28+
],
29+
'3.0.3' => [
30+
'修复复制按钮的 toast bug'
2831
]
2932
];

0 commit comments

Comments
 (0)