Vinicius Fonseca

Results 2 comments of Vinicius Fonseca

You can prevent this by wrapping the masked text input with a custom component. Pass a "type" prop to the wrapper component, then at the shouldComponentUpdate lifecycle function return false...

@agarcia17 ```javascript class FormField extends React.Component { // wrapper component maskedInputRef = null static get TYPE() { return { DATE: 'date', MASKED: 'masked' } } shouldComponentUpdate() { return this.props.type !==...