@hi-ui/hiui 3.9.0-rc.1 → 3.9.0-rc.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/CHANGELOG.md +1 -0
- package/es/popper/Overlay.js +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
- 优化 `Dropdown` 组件 props 中的 data 消除副作用 [#1991](https://github.com/XiaoMi/hiui/issues/1991)
|
|
12
12
|
- 修复 `TimePicker` 组件使用 minusStep 当点击 clear 后会再次自动回显值 [#1986](https://github.com/XiaoMi/hiui/issues/1986)
|
|
13
13
|
- 修复 `Table` 组件 window 系统 `draggable=false` 禁用失效 [#1993](https://github.com/XiaoMi/hiui/issues/1993)
|
|
14
|
+
- 修复 `Popper` 组件 Popper DOM 节点位置移动时未同步进行位置计算 [#2011](https://github.com/XiaoMi/hiui/issues/2011)
|
|
14
15
|
|
|
15
16
|
# 3.8.0
|
|
16
17
|
|
package/es/popper/Overlay.js
CHANGED
|
@@ -151,6 +151,8 @@ var Overlay = function Overlay(props) {
|
|
|
151
151
|
}
|
|
152
152
|
});
|
|
153
153
|
(0, _react.useEffect)(function () {
|
|
154
|
+
if (!show) return;
|
|
155
|
+
|
|
154
156
|
if (state.popperRef) {
|
|
155
157
|
var _offset = (0, _positionUtils.getOffset)(props, state);
|
|
156
158
|
|
|
@@ -158,7 +160,7 @@ var Overlay = function Overlay(props) {
|
|
|
158
160
|
offset: _offset
|
|
159
161
|
}));
|
|
160
162
|
}
|
|
161
|
-
}, [state.popperRef]); // DidMount
|
|
163
|
+
}, [show, state.popperRef]); // DidMount
|
|
162
164
|
|
|
163
165
|
(0, _react.useEffect)(function () {
|
|
164
166
|
var container = props.container;
|
package/package.json
CHANGED