Skip to content
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

Update digit-only.directive.ts #57

Merged
merged 1 commit into from
Sep 7, 2021
Merged

Conversation

billn6
Copy link
Contributor

@billn6 billn6 commented Sep 3, 2021

Added an allowPaste @input that can be set to false in markup to prevent pasting into an digitOnly input field. allowPaste defaults to true.

This was in response to issue 56 "Can't disable paste". I tried a couple of the recommendations from stackoverflow without success. This code change works to prevent pasting, so it might be useful.

added an allowPaste input that can be set to false in markup to prevent pasting into an digitOnly input field
@changhuixu changhuixu merged commit 4661e02 into changhuixu:main Sep 7, 2021
changhuixu added a commit that referenced this pull request Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants