How to disable copy and paste activity in ionic3 form fields

时间:2017-11-13 06:30:07

标签: ionic3

Is it possible to remove copy and paste in ionic3 form fields?

I tried using the below CSS code but not working,(i.e the options are displaying, long press on input field )

 ion-input {
    -webkit-touch-callout: none;    /* prevent callout to copy image, etc when tap to hold */
    -webkit-text-size-adjust: none; /* prevent webkit from resizing text to fit */
    -webkit-user-select: none;      /* prevent copy paste, to allow, change 'none' to 'text' */
    -ms-touch-callout: none;
    -ms-user-select: none;
    -ms-text-size-adjust: none;
    -moz-touch-callout: none;
    -moz-user-select: none;
    -moz-text-size-adjust: none;
  }

0 个答案:

没有答案