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 && (
|
|
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
|
}
|