Skip to content

Commit

Permalink
Merge pull request #5730 from qburst/fix--5726
Browse files Browse the repository at this point in the history
fix: disable paste functionality in readonly mode
  • Loading branch information
tugcekucukoglu authored May 16, 2024
2 parents 3c4e621 + 7e200f0 commit 5205278
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/lib/inputnumber/InputNumber.vue
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,10 @@ export default {
}
},
onPaste(event) {
if (this.readonly || this.disabled) {
return;
}
event.preventDefault();
let data = (event.clipboardData || window['clipboardData']).getData('Text');
Expand Down

0 comments on commit 5205278

Please sign in to comment.