Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how prevent copy paste input react

<Input onPaste={(e)=>{
      e.preventDefault()
      return false;
    }} onCopy={(e)=>{
      e.preventDefault()
      return false;
    }} placeholder="Basic usage" />
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #prevent #copy #paste #input #react
ADD COMMENT
Topic
Name
7+1 =