Skip to content

Commit fc98000

Browse files
committed
refac
1 parent 21cc828 commit fc98000

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib/utils/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ export const copyToClipboard = async (text, html = null, formatted = false) => {
520520
textArea.style.position = 'fixed';
521521

522522
document.body.appendChild(textArea);
523-
textArea.focus();
523+
textArea.focus({ preventScroll: true });
524524
textArea.select();
525525

526526
try {

0 commit comments

Comments
 (0)