x-ui-design 0.8.59 → 0.8.60

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
@@ -5395,8 +5395,14 @@ const Dropdown = ({
5395
5395
  const onTriggerClick = e => {
5396
5396
  e.preventDefault();
5397
5397
  e.stopPropagation();
5398
+ console.log({
5399
+ triggers,
5400
+ triggerRef: triggerRef.current,
5401
+ popupRef: popupRef.current,
5402
+ t: triggerRef.current?.contains(e.target),
5403
+ p: popupRef.current?.contains(e.target)
5404
+ });
5398
5405
  if (popupRef.current && !popupRef.current.contains(e.target) && triggerRef.current && !triggerRef.current.contains(e.target) && triggers.includes('click')) {
5399
- console.log(true);
5400
5406
  setOpenInternal(!open);
5401
5407
  }
5402
5408
  };
@@ -5442,12 +5448,6 @@ const Dropdown = ({
5442
5448
  padding: 8
5443
5449
  }
5444
5450
  }, "Empty menu")));
5445
- {
5446
- console.info({
5447
- open,
5448
- popup
5449
- });
5450
- }
5451
5451
  return /*#__PURE__*/React.createElement("div", {
5452
5452
  ref: triggerRef,
5453
5453
  className: className,