uiw 4.21.1 → 4.21.2

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/uiw.js CHANGED
@@ -2892,7 +2892,8 @@ var normalizeDelay = delay => delay && typeof delay === 'object' ? delay : {
2892
2892
  });
2893
2893
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useImperativeHandle)(ref, () => ({
2894
2894
  hide: () => _hide(),
2895
- show: () => _show()
2895
+ show: () => _show(),
2896
+ overlayDom: popupRef
2896
2897
  }));
2897
2898
  var child = external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.only(children);
2898
2899
 
@@ -4629,6 +4630,10 @@ var SubMenu = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
4629
4630
 
4630
4631
  function onEntered(node) {
4631
4632
  node.style.height = 'initial';
4633
+
4634
+ if (popupRef.current && popupRef.current.overlayDom) {
4635
+ node.style.height = popupRef.current.overlayDom.current.getBoundingClientRect().height + 'px';
4636
+ }
4632
4637
  }
4633
4638
 
4634
4639
  if (!collapse) {