Skip to content

Tag: javascript

React: Fire a function when the element is blurred

I’m trying to fire a function when an element has loses focus, but it appears the blur event is not being recognized in my React app. I’m unclear on what I’m missing. The following snippet is just above the return method within my component. My div carries the ref {infoWindow}. At the moment…