x-ui-design 0.8.28 → 0.8.29
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
CHANGED
|
@@ -2676,7 +2676,6 @@ const usePosition = ({
|
|
|
2676
2676
|
useEffect(() => {
|
|
2677
2677
|
if (!isOpen) return;
|
|
2678
2678
|
const _dropdownPosition = () => dropdownPosition();
|
|
2679
|
-
console.log(_dropdownPosition);
|
|
2680
2679
|
_dropdownPosition();
|
|
2681
2680
|
const controller = new AbortController();
|
|
2682
2681
|
const scrollableParents = getScrollParent(triggerRef.current, true);
|
|
@@ -5560,9 +5559,7 @@ const Popover = ({
|
|
|
5560
5559
|
offset: 10,
|
|
5561
5560
|
popupRef,
|
|
5562
5561
|
placement,
|
|
5563
|
-
triggerRef
|
|
5564
|
-
current: document.getElementsByClassName(`${prefixCls}-wrapper-content`)[0]
|
|
5565
|
-
},
|
|
5562
|
+
triggerRef,
|
|
5566
5563
|
getPopupContainer: getPopupContainer?.(triggerRef.current)
|
|
5567
5564
|
});
|
|
5568
5565
|
useEffect(() => {
|
|
@@ -5604,6 +5601,7 @@ const Popover = ({
|
|
|
5604
5601
|
if (! /*#__PURE__*/isValidElement(child)) {
|
|
5605
5602
|
child = /*#__PURE__*/React.createElement("div", null, child);
|
|
5606
5603
|
}
|
|
5604
|
+
console.log(index);
|
|
5607
5605
|
return /*#__PURE__*/cloneElement(child, {
|
|
5608
5606
|
key: index,
|
|
5609
5607
|
...(index === 0 ? {
|