@julseb-lib/react 1.1.26 → 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) {
@@ -6253,6 +6253,7 @@ var InputImage = ({
6253
6253
  {
6254
6254
  onMouseEnter: () => !disabled && setIsHovered(true),
6255
6255
  onMouseLeave: () => !disabled && setIsHovered(false),
6256
+ type: "button",
6256
6257
  children: /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
6257
6258
  "label",
6258
6259
  {
@@ -70847,8 +70848,7 @@ var Header = ({
70847
70848
  ref: el
70848
70849
  };
70849
70850
  useKeyPress("Escape", handleClose);
70850
- useClickOutside(el, (e) => {
70851
- if (e.target?.closest(".header-burger")) return;
70851
+ useClickOutside(el, () => {
70852
70852
  if (isOpen) handleClose();
70853
70853
  });
70854
70854
  return /* @__PURE__ */ (0, import_jsx_runtime373.jsxs)(