We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b94dd82 commit 28835f2Copy full SHA for 28835f2
knowledge-base/inputs-disable-copy-paste.md
@@ -61,8 +61,8 @@ To disable the copy and paste functionality in a TextBox and other Telerik Blazo
61
var input = document.querySelector(".no-copy-paste input");
62
63
if (input) {
64
- input.oncopy = e => e.preventDefault();
65
- input.onpaste = e => e.preventDefault();
+ input.addEventListener("copy", e => e.preventDefault());
+ input.addEventListener("paste", e => e.preventDefault());
66
}
67
68
</script>
0 commit comments