@wix/editor-react-components 1.2308.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
|
-
|
|
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.
|
|
3
|
+
"version": "1.2309.0",
|
|
4
4
|
"description": "React components for the Wix Editor",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -190,5 +190,5 @@
|
|
|
190
190
|
"registry": "https://registry.npmjs.org/",
|
|
191
191
|
"access": "public"
|
|
192
192
|
},
|
|
193
|
-
"falconPackageHash": "
|
|
193
|
+
"falconPackageHash": "e4eb390993f962c2e719b1e1f3c90378da9dcb66619c2926187e9bb1"
|
|
194
194
|
}
|