Skip to content

Commit 5161f0e

Browse files
chore(common): update example (#2581)
Co-authored-by: Nadezhda Tacheva <Nadezhda.Tacheva@progress.com>
1 parent 23f57c7 commit 5161f0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
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)