I think this is it. What I wanted is, to know that my component loses focus so I can toggle or trigger other events.
For now what I did is add a focusable element such as button to check if that is on focus and if focus out, trigger the event I wanted to do (basically just hide a pop-up div)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I think this is it. What I wanted is, to know that my component loses focus so I can toggle or trigger other events.
For now what I did is add a focusable element such as button to check if that is on focus and if focus out, trigger the event I wanted to do (basically just hide a pop-up div)