mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 06:42:32 -05:00
fix on paste
This commit is contained in:
1 parent
1cea5f5a99
commit
0b4e345ad6
2 files changed
+2
-2
No files matched your search
@@ -101,7 +101,7 @@ export default {
|
||||
onPaste (e) {
|
||||
const text = (e.clipboardData || window.clipboardData).getData('text/plain')
|
||||
|
||||
const selection = window.getSelection()
|
||||
const selection = this.$el.getRootNode().getSelection()
|
||||
|
||||
if (selection.rangeCount) {
|
||||
selection.deleteFromDocument()
|
||||
|
||||
Reference in new issue
Block a user