well, you must track your component's state, either its a dialog box, a context menu or any other component, the onClose method is called when the user clicks outside of your reffered component, it's upto you wheather you want to change state or call an API or do something else.
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.
well, you must track your component's state, either its a dialog box, a context menu or any other component, the onClose method is called when the user clicks outside of your reffered component, it's upto you wheather you want to change state or call an API or do something else.