@wix/editor-react-components 1.2307.0 → 1.2309.0

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.
@@ -1520,7 +1520,11 @@ const MenuItem = (props) => {
1520
1520
  });
1521
1521
  const { isHamburgerMenuOpened } = useMenuContext();
1522
1522
  const { setDropdownDomStylesApplier, dropdownElementRef } = useContext(DropdownContext);
1523
- setDropdownDomStylesApplier(updateDropdownDomStyles2);
1523
+ useEffect(() => {
1524
+ if (forceOpen) {
1525
+ setDropdownDomStylesApplier(updateDropdownDomStyles2);
1526
+ }
1527
+ }, [forceOpen, setDropdownDomStylesApplier, updateDropdownDomStyles2]);
1524
1528
  const eventListeners = createEventListeners({
1525
1529
  showDropdown,
1526
1530
  hideDropdown,
@@ -1640,7 +1644,7 @@ const MenuItem = (props) => {
1640
1644
  {
1641
1645
  ...sharedDropdownProps,
1642
1646
  menuOrientation: "horizontal",
1643
- ref: dropdownElementRef,
1647
+ ref: forceOpen ? dropdownElementRef : void 0,
1644
1648
  direction: submenuDirection
1645
1649
  }
1646
1650
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/editor-react-components",
3
- "version": "1.2307.0",
3
+ "version": "1.2309.0",
4
4
  "description": "React components for the Wix Editor",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -77,7 +77,7 @@
77
77
  "@vis.gl/react-google-maps": "^1.5.2",
78
78
  "@wix/ambassador-devcenter-v1-component-type-data": "^1.0.436",
79
79
  "@wix/services-manager-react": "^0.1.27",
80
- "@wix/site-ui": "1.145.0",
80
+ "@wix/site-ui": "1.146.0",
81
81
  "@wix/video": "^1.85.0",
82
82
  "@wix/viewer-service-consent-policy": "^1.0.100",
83
83
  "@wix/wix-ui-icons-common": "^3.173.0",
@@ -107,7 +107,7 @@
107
107
  "@uiw/react-codemirror": "^4.24.1",
108
108
  "@vitejs/plugin-react": "^4.3.4",
109
109
  "@wix/a11y-audit-tool-plugin": "^0.329.0",
110
- "@wix/astro": "^2.62.0",
110
+ "@wix/astro": "^2.63.0",
111
111
  "@wix/business-tools": "^1.0.225",
112
112
  "@wix/cli": "^1.1.226",
113
113
  "@wix/cli-app": "^1.1.226",
@@ -190,5 +190,5 @@
190
190
  "registry": "https://registry.npmjs.org/",
191
191
  "access": "public"
192
192
  },
193
- "falconPackageHash": "9dfd10337aa7fde680c442ede6926f574b28f44b697e1af1483cce75"
193
+ "falconPackageHash": "e4eb390993f962c2e719b1e1f3c90378da9dcb66619c2926187e9bb1"
194
194
  }