This PR passes the event.target that triggers an onClickOutside to the handlers.
This is useful when the outside layer wants to prevent certain "outside" elements from closing the layer (e.g. when the anchor element outside should not close the layer).
This PR passes the
event.target
that triggers anonClickOutside
to the handlers.This is useful when the outside layer wants to prevent certain "outside" elements from closing the layer (e.g. when the anchor element outside should not close the layer).