Skip to content

Commit d48cd8e

Browse files
feat: copyable stopPropagation #5746 (#5769)
* 分离copyable按钮动作,不再冒泡至父级组件 * Update interactive.vue Co-authored-by: tangjinzhou <[email protected]>
1 parent 187f3b8 commit d48cd8e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

components/typography/Base.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ const Base = defineComponent({
233233
// ================ Copy ================
234234
function onCopyClick(e: MouseEvent) {
235235
e.preventDefault();
236+
e.stopPropagation();
236237
const { copyable } = props;
237238

238239
const copyConfig = {

0 commit comments

Comments
 (0)