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

When mask contains parentheses onChange doesn't work #128

Closed
guilhermehubner opened this issue Feb 21, 2018 · 1 comment
Closed

When mask contains parentheses onChange doesn't work #128

guilhermehubner opened this issue Feb 21, 2018 · 1 comment

Comments

@guilhermehubner
Copy link

guilhermehubner commented Feb 21, 2018

I try:

<InputMask  placeholder="(00) 00000-0000" mask="(99) 99999-9999" value={this.state.phone1}
   maxLength={15} onChange={this.handleInput} name="phone1" /> 

onChanged event is fired only onFocus and onBlur

@sanniassin
Copy link
Owner

@guilhermehubner You should omit maxLength prop. react-input-mask won't allow to enter anything longer than the mask length anyway.

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

No branches or pull requests

2 participants