@julseb-lib/react 1.1.27 → 1.1.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -3032,7 +3032,7 @@ var useClickOutside = (ref, handler, isActive = true, delay = 100) => {
3032
3032
  (0, import_react5.useEffect)(() => {
3033
3033
  const handleClickOutside = (event) => {
3034
3034
  if (ref.current && !ref.current.contains(event.target)) {
3035
- handler();
3035
+ handler(event);
3036
3036
  }
3037
3037
  };
3038
3038
  if (isActive) {
@@ -70848,8 +70848,7 @@ var Header = ({
70848
70848
  ref: el
70849
70849
  };
70850
70850
  useKeyPress("Escape", handleClose);
70851
- useClickOutside(el, (e) => {
70852
- if (e.target?.closest(".header-burger")) return;
70851
+ useClickOutside(el, () => {
70853
70852
  if (isOpen) handleClose();
70854
70853
  });
70855
70854
  return /* @__PURE__ */ (0, import_jsx_runtime373.jsxs)(