Diptarka Das
Diptarka Das
You can always do this: ` this.input = ref && ref.input} id="phone" name="phone number" className={!isEmpty(this.state.phoneError.message) ? 'error-input' : ''} mask="(111) 111-1111" placeholder="Phone Number" onFocus={this.inputOnFocusHandler.bind(this)} // Doesn't work onChange={this.inputChangeHandler.bind(this)} placeholderChar="X" value={this.state.phone}...
Having the same issue. From the looks of it, since everything is reset when new mask is passed on props, it is setting start and end to {0,0}. Checking to...
I tried quite a few ways, but none of them worked. Seems like the problem is coming from react itself. I wrote a simple, not very optimized code that you...