@ucloud-fe/react-components 1.12.1 → 1.13.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.
@@ -130,7 +130,7 @@ var useOverflow = function useOverflow(_ref) {
130
130
  (0, _react.useLayoutEffect)(function () {
131
131
  (0, _newArrowCheck2.default)(this, _this);
132
132
  var containerDOM = containerRef === null || containerRef === void 0 ? void 0 : containerRef.current;
133
- if (!containerDOM) return; // measure end
133
+ if (!containerDOM || containerDOM.offsetWidth === 0 || containerDOM.scrollWidth === 0) return; // measure end
134
134
 
135
135
  if (count === latestValidCount) {
136
136
  endMeasuring(latestValidCount);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ucloud-fe/react-components",
3
- "version": "1.12.1",
3
+ "version": "1.13.0",
4
4
  "title": "UCloud react components",
5
5
  "description": "UCloud react components",
6
6
  "keywords": [