x-ui-design 0.8.60 → 0.8.62
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 -8
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +6 -8
- package/dist/index.js.map +1 -1
- package/lib/components/Dropdown/Dropdown.tsx +8 -13
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -5395,14 +5395,8 @@ const Dropdown = ({
|
|
|
5395
5395
|
const onTriggerClick = e => {
|
|
5396
5396
|
e.preventDefault();
|
|
5397
5397
|
e.stopPropagation();
|
|
5398
|
-
console.log(
|
|
5399
|
-
|
|
5400
|
-
triggerRef: triggerRef.current,
|
|
5401
|
-
popupRef: popupRef.current,
|
|
5402
|
-
t: triggerRef.current?.contains(e.target),
|
|
5403
|
-
p: popupRef.current?.contains(e.target)
|
|
5404
|
-
});
|
|
5405
|
-
if (popupRef.current && !popupRef.current.contains(e.target) && triggerRef.current && !triggerRef.current.contains(e.target) && triggers.includes('click')) {
|
|
5398
|
+
console.log(triggerRef.current, triggers.includes('click'), !open);
|
|
5399
|
+
if (triggerRef.current && triggers.includes('click')) {
|
|
5406
5400
|
setOpenInternal(!open);
|
|
5407
5401
|
}
|
|
5408
5402
|
};
|
|
@@ -5448,6 +5442,10 @@ const Dropdown = ({
|
|
|
5448
5442
|
padding: 8
|
|
5449
5443
|
}
|
|
5450
5444
|
}, "Empty menu")));
|
|
5445
|
+
console.log({
|
|
5446
|
+
open,
|
|
5447
|
+
popup
|
|
5448
|
+
});
|
|
5451
5449
|
return /*#__PURE__*/React.createElement("div", {
|
|
5452
5450
|
ref: triggerRef,
|
|
5453
5451
|
className: className,
|