Skip to content

Commit 28835f2

Browse files
committed
chore(common): update example
1 parent b94dd82 commit 28835f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

knowledge-base/inputs-disable-copy-paste.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ To disable the copy and paste functionality in a TextBox and other Telerik Blazo
6161
var input = document.querySelector(".no-copy-paste input");
6262
6363
if (input) {
64-
input.oncopy = e => e.preventDefault();
65-
input.onpaste = e => e.preventDefault();
64+
input.addEventListener("copy", e => e.preventDefault());
65+
input.addEventListener("paste", e => e.preventDefault());
6666
}
6767
}
6868
</script>

0 commit comments

Comments
 (0)