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