Open Wimmind opened 1 week ago
in this case there is no error, but an error appears when entering: TypeError: Cannot read properties of undefined (reading 'setSelectionRange')
<ReactPhoneInput
value={value as string}
onChange={onChange as any}
inputProps={{
...restProps,
}}
component={React.forwardRef((props, ref) => (
<TextField {...props} inputRef={ref} />
))}
/>
I have a wrapper component over Textfield, if I use it, I get an error in the console, how can I fix it?
error: