I have my input Textbox like below. User should not be allowed to perform copy paste in the Textbox. But somehow my code is not working. Is there any other approach?
<input type="text" class="form-control" id="startTextbox1" appOnlynumber onkeypress='validate(event)' onCopy="return false" onDrag="return false" onDrop="return false" onPaste="return false" formControlName="startTextbox1">
I have also written custom directive like it specified in below link but its not working.
https://stackblitz.com/edit/angular-u4jcam?file=app%2Fapp.component.html
Any suggestions please?