x-ui-design 0.8.13 → 0.8.14
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/index.esm.js +6 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/lib/components/Popover/Popover.tsx +10 -4
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -4932,18 +4932,21 @@ const Popover = ({
|
|
|
4932
4932
|
});
|
|
4933
4933
|
const toggle = () => {
|
|
4934
4934
|
const newState = !isOpen;
|
|
4935
|
-
onVisibleChange
|
|
4935
|
+
onVisibleChange?.(newState);
|
|
4936
|
+
setInnerOpen(newState);
|
|
4936
4937
|
};
|
|
4937
4938
|
const show = () => {
|
|
4938
4939
|
setHover(true);
|
|
4939
4940
|
if (trigger === "hover") {
|
|
4940
|
-
onVisibleChange
|
|
4941
|
+
onVisibleChange?.(true);
|
|
4942
|
+
setInnerOpen(true);
|
|
4941
4943
|
}
|
|
4942
4944
|
};
|
|
4943
4945
|
const hide = () => {
|
|
4944
4946
|
setHover(false);
|
|
4945
4947
|
if (trigger === "hover") {
|
|
4946
|
-
onVisibleChange
|
|
4948
|
+
onVisibleChange?.(false);
|
|
4949
|
+
setInnerOpen(false);
|
|
4947
4950
|
}
|
|
4948
4951
|
};
|
|
4949
4952
|
const childProps = trigger === "click" ? {
|