Skip to content

Commit 7cfa888

Browse files
committed
[Fix]: #2039 copyToClipboard utility content
1 parent 0e5aa97 commit 7cfa888

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/packages/lowcoder/src/comps/hooks/utilsComp.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,12 @@ UtilsComp = withMethodExposing(UtilsComp, [
8787
method: {
8888
name: "copyToClipboard",
8989
description: trans("utilsComp.copyToClipboard"),
90-
params: [{ name: "url", type: "string" }],
90+
params: [{ name: "text", type: "string" }],
9191
},
9292
execute: (comp, params) => {
9393
const text = params?.[0];
9494
if (typeof text === "string" && !isEmpty(text)) {
95-
copy(text);
95+
copy(text, { format: "text/plain" });
9696
}
9797
},
9898
},

0 commit comments

Comments
 (0)