const inputRef = React.useRef(null);
const blurEvent= () => {
inputRef.current.focus({
cursor: 'start',
})
inputRef.current.blur();
}
<Input
placeholder="Name"
required
ref={inputRef}
onBlur={blurEvent}
/>
let isMyBlur = false;
const inputRef = React.useRef(null);
const blurEvent= () => {
if(!isMyBlur){
inputRef.current.focus({
cursor: 'start',
})
isMyBlur = true;
inputRef.current.blur();
}
isMyBlur = false;
}
<Input
placeholder="Name"
required
ref={inputRef}
onBlur={blurEvent}
/>