NewOldMax / react-form-validator-core

Core validator component for react forms
MIT License
94 stars 44 forks source link

Issue in TextValidator children rendering #19

Closed deepaktomar47 closed 6 years ago

deepaktomar47 commented 6 years ago

I have used InputMask component in side of TextValidator and its worked fine in react.15x after updating its not working. Please check below code. How i can make it happen please help us

             <TextValidator
                validatorListener={this.validatorListener}
                hintText="Home Phone"
                value={this.state._phone1} 
                className="drawer-form-input-text"
                label="Home Phone"
                name="bill_phone1"
                key="bill_phone1"
                onChange={this.handleSecondryContact}
              >
                <InputMask
                  hintText="Home Phone"
                  value={this.state.secondryContact.bill_phone1}
                  mask="(999) 999-9999"
                  onChange={this.handleSecondryContact}
                  className="drawer-form-input-text"
                  name="bill_phone1"
                />
              </TextValidator>
NewOldMax commented 6 years ago

Hi, please provide versions of packages

deepaktomar47 commented 6 years ago

"react-material-ui-form-validator": "^2.0.0-beta.10",

"react-input-mask": "^1.2.2",
NewOldMax commented 6 years ago

So if your problem is related to react-material-ui-form-validator please create issue here