Skip to content

Commit 72a3925

Browse files
committed
fix: block disabled paste before editor handling
(cherry picked from commit e032b5f)
1 parent 9d2bcb1 commit 72a3925

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • frontend/src/store/modules

frontend/src/store/modules/app.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ const mutations = {
3939
document.addEventListener('paste', (e) => {
4040
Message.error(i18n.t('msg.copy_not_allowed'))
4141
e.preventDefault()
42+
e.stopPropagation()
4243
navigator.clipboard.writeText('').then(r => {})
43-
})
44+
}, true)
4445
}
4546
}
4647
}

0 commit comments

Comments
 (0)