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