52
rated 0 times
[
53]
[
1]
/ answers: 1 / hits: 22432
/ 5 Years ago, mon, may 20, 2019, 12:00:00
I have an input text field . When a user inputs any text and clicks enter button I need to activate the blur event to remove the focus and also to validate the textinput .
<input type="text"
style={{marginTop:'20%', marginLeft:'40%'}}
value={value}
onFocus={onFocus}
onChange={e => setValue(e.target.value)}
onKeyPress={handleKeyPress}
/>
More From » reactjs