I want to trigger one handler when an input field is clicked, and another handler when it is deselected (i.e. if someone clicks outside of the field). Is there a way to accomplish this?
The click handler is simple enough:
<input onClick={props.clicked}>
Is it possible to create an "unclick" handler?
I think onBlur event should be suitable for this
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With