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

Add an ability to use 'isRevealingMask' option #98

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

IIaJIeHo
Copy link

I've added an ability to use isRevealingMask with this component.
The description for this option is in
https://github.com/insin/inputmask-core#isrevealingmask--boolean

@andersryanc
Copy link

+1

I noticed this option today while reading over the inputmask-core docs and would love to have this integrated!

Specifically, I think it's annoying when the input is masked with and underscore ("_") or space (" ") and you have to delete back through all that to enter in more text. And when you set the placeholderChar prop to false or an empty string '' it just defaults back to the underscore.

@reddo
Copy link

reddo commented Sep 6, 2017

+1 for this prop. I would also like to see this implemented.

Copy link

@RajuSuranagi RajuSuranagi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please resolve the conflicts

@@ -207,10 +202,9 @@ var MaskedInput = React.createClass({
this._updateMaskSelection()
if (this.mask.input((e.key || e.data))) {
e.target.value = this.mask.getValue()
window.mask = this.mask

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this change? This is not correct to add a variable directly to window object

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.

4 participants