softbuilders-react-video-player 1.1.65 → 1.1.67

Sign up to get free protection for your applications and to get access to all the features.
@@ -28,13 +28,13 @@ const MenuButton = ({ buttonContent, menuContent, close, classContainer, onClick
28
28
  setNoteOpen && setNoteOpen(isOpen);
29
29
  }, [isOpen]);
30
30
  return (_jsxs("div", { className: "sb-relative sb-flex sb-items-end", children: [_jsx("button", { ref: buttonRef, onClick: (e) => {
31
- e.stopPropagation();
31
+ isOpen && e.stopPropagation();
32
32
  // if (!disablePopUp) {
33
33
  toggleMenu();
34
34
  onClick && onClick(e, !isOpen);
35
35
  // }
36
36
  noteButtonClick && noteButtonClick(!isOpen);
37
- }, "aria-haspopup": "true", "aria-expanded": isOpen, "aria-label": "Open menu", children: buttonContent }), isOpen && (_jsx("div", { ref: menuRef, role: "menu", "aria-orientation": "vertical", "aria-labelledby": "Open menu", className: `sb-absolute sb-shadow-lg sb-right-0 sb-bottom-10 ${classContainer}`, children: menuContent }))] }));
37
+ }, "aria-haspopup": "true", "aria-expanded": isOpen, "aria-label": "Open menu", children: buttonContent }), !disablePopUp && isOpen && (_jsx("div", { ref: menuRef, role: "menu", "aria-orientation": "vertical", "aria-labelledby": "Open menu", className: `sb-absolute sb-shadow-lg sb-right-0 sb-bottom-10 ${classContainer}`, children: menuContent }))] }));
38
38
  };
39
39
  export default MenuButton;
40
40
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/MenuButton/index.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAcxE,MAAM,UAAU,GAAG,CAAC,EAClB,aAAa,EACb,WAAW,EACX,KAAK,EACL,cAAc,EACd,OAAO,EACP,WAAW,EACX,eAAe,EACf,YAAY,GAAG,KAAK,GACd,EAAE,EAAE;IACV,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,KAAK,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,CAAC,mBACa,MAAM,mBACL,MAAM,gBACV,WAAW,YAErB,aAAa,GACP,EAER,CAAC,YAAY,IAAI,MAAM,IAAI,CAC1B,cACE,GAAG,EAAE,OAAO,EACZ,IAAI,EAAC,MAAM,sBACM,UAAU,qBACX,WAAW,EAC3B,SAAS,EAAE,oDAAoD,cAAc,EAAE,YAE9E,WAAW,GACR,CACP,IACG,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -59,10 +59,10 @@ const MenuButton = ({
59
59
  <button
60
60
  ref={buttonRef}
61
61
  onClick={(e: any) => {
62
- e.stopPropagation();
62
+ isOpen && e.stopPropagation();
63
63
  // if (!disablePopUp) {
64
- toggleMenu();
65
- onClick && onClick(e, !isOpen);
64
+ toggleMenu();
65
+ onClick && onClick(e, !isOpen);
66
66
  // }
67
67
 
68
68
  noteButtonClick && noteButtonClick(!isOpen);
@@ -74,7 +74,7 @@ const MenuButton = ({
74
74
  {buttonContent}
75
75
  </button>
76
76
 
77
- {isOpen && (
77
+ {!disablePopUp && isOpen && (
78
78
  <div
79
79
  ref={menuRef}
80
80
  role="menu"
package/dist/index.mjs CHANGED
@@ -640,7 +640,7 @@ var MenuButton = ({
640
640
  {
641
641
  ref: buttonRef,
642
642
  onClick: (e) => {
643
- e.stopPropagation();
643
+ isOpen && e.stopPropagation();
644
644
  toggleMenu();
645
645
  onClick && onClick(e, !isOpen);
646
646
  noteButtonClick && noteButtonClick(!isOpen);
@@ -651,7 +651,7 @@ var MenuButton = ({
651
651
  children: buttonContent
652
652
  }
653
653
  ),
654
- isOpen && /* @__PURE__ */ jsx20(
654
+ !disablePopUp && isOpen && /* @__PURE__ */ jsx20(
655
655
  "div",
656
656
  {
657
657
  ref: menuRef,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "softbuilders-react-video-player",
3
3
  "description": "Standalone video player component",
4
- "version": "1.1.65",
4
+ "version": "1.1.67",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "files": [