I have a div on a page that shows some info about a particular category (Image, Name etc).
When I click on the edit image it puts the category into edit mode which
I faced the same issue. This what worked for me.
handleBlur(event) { // if the blur was because of outside focus // currentTarget is the parent element, relatedTarget is the clicked element if (!event.currentTarget.contains(event.relatedTarget)) { ..... } }
Enjoy :)