idoros / zeejs

Layering in HTML
MIT License
7 stars 0 forks source link

feat: pass eventTarget to onClickOutside #72

Closed idoros closed 2 years ago

idoros commented 2 years ago

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).