-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat: Added support maskInputFn with HTMLElement #1188
Conversation
🦋 Changeset detectedLatest commit: 6b583e6 The changes in this PR will be included in the next version bump. This PR includes changesets to release 8 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@Juice10 don't want to bother but what would be the best way to get attention for PRs that are good to go? |
@benjackwhite Thanks for submitting this PR. At the moment we go through all the open pull requests once a month as a team, or ourselves whenever we have time. We're hoping to attract some more sponsorship for the project which will allow us to free up some more time to do this more often. |
Commonly people want to have the safety of knowing all inputs are masked but also the ability to selectively unmask (perhaps for a search box for example).
This PR extends the
MaskInputFn
to have a second argument which is theHTMLElement
. This way users can easily define their own logic to decide whether the input should be masked or not.