diginet-core-ui 1.4.52-beta.12 → 1.4.52-beta.13

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.
@@ -454,6 +454,7 @@ const Attachment = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference
454
454
  allNewAttached: tempNewDataState
455
455
  });
456
456
  !!onRemoveProp && onRemoveProp(recentRemovedAttached);
457
+ removeActiveChosenItem();
457
458
  onClosePopup();
458
459
  };
459
460
  const clearAllAttached = (confirmPopup = false) => {
@@ -689,13 +690,12 @@ const Attachment = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference
689
690
  }
690
691
  };
691
692
  const clickOutOfItem = e => {
692
- var _popupRef$current, _popupRef$current$sty;
693
693
  if (!attachedRef || !attachedRef.current) {
694
694
  document.removeEventListener('keydown', onKeyDown);
695
695
  document.removeEventListener('click', clickOutOfItem);
696
696
  return;
697
697
  }
698
- if (!(attachedRef.current.contains(e.target) && attachedRef.current !== e.target) && !attachmentHandleIconRef.current.contains(e.target) && !isDeleteAll.current && (((_popupRef$current = popupRef.current) === null || _popupRef$current === void 0 ? void 0 : (_popupRef$current$sty = _popupRef$current.style) === null || _popupRef$current$sty === void 0 ? void 0 : _popupRef$current$sty.display) !== 'flex' || popupRef.current.querySelector('button.filled.info').contains(e.target))) {
698
+ if (!(attachedRef.current.contains(e.target) && attachedRef.current !== e.target) && !attachmentHandleIconRef.current.contains(e.target) && !isDeleteAll.current && !(popupRef.current instanceof Element)) {
699
699
  removeAllChosenItems();
700
700
  removeActiveChosenItem();
701
701
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "diginet-core-ui",
3
- "version": "1.4.52-beta.12",
3
+ "version": "1.4.52-beta.13",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "license": "UNLICENSED",