-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't disable paste #56
Comments
That did not work for me either, nor did onPaste="return false;" nor trying event.preventDefault(); as suggested here. The following did work. It allows you to specify allowPaste=false on the input control. add this @input() allowPaste = true; and then modify the onPaste as follows @HostListener('paste', ['$event'])
} |
Hi @billn6 , I think your solution works. @plmpradeep , what's your opinion on this one (adding a new input field to control the paste handler)? |
Yup. Suggested changes work fine. |
@changhuixu Will you throw a small but needed change into the 2.x branch as well? |
Hi @patrykdawid |
I want to disable paste. But using (paste)="false" with digitOnly directive doesn't work.
The text was updated successfully, but these errors were encountered: