Merge pull request #34 from navedqb/fix--5726

fix: disable paste functionality in readonly mode
pull/5730/head
navedqb 2024-05-13 22:15:13 +05:30 committed by GitHub
commit 41abb10198
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -549,6 +549,10 @@ export default {
} }
}, },
onPaste(event) { onPaste(event) {
if (this.readonly || this.disabled) {
return
}
event.preventDefault(); event.preventDefault();
let data = (event.clipboardData || window['clipboardData']).getData('Text'); let data = (event.clipboardData || window['clipboardData']).getData('Text');