Create onChange for unformatted value.
Opened this issue · 1 comments
Neketek commented
constructor(props){
super(props);
this.isValid = (event)=>{
console.log(event);
return ReactPhoneInput.defaultProps.isValid(event);
}
}
render(){
return (<ReactPhoneInput isValid={this.isValid} className="form-control" defaultCountry={'us'} {...this.props}></ReactPhoneInput>);
}
Currently to get unformatted value from this component you need to use something like in code sample above. Sometimes it may be required for request building, therefore I'm asking you to add method like onChangeUnformatted(input)
sample-usr commented
Instead of that, i'm in favor of adding a new method for getting unformatted value e.g. 'getUnformattedValue()', I'll get this in soon.