@skedulo/sked-ui 21.0.0-alpha.7 → 21.0.0-alpha.9
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.js +4 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10563,7 +10563,7 @@ var PopOut = function PopOut(props) {
|
|
|
10563
10563
|
var notContentTargetArea = Object(_popups_info_window_info_window_utils__WEBPACK_IMPORTED_MODULE_4__["notTargetAreas"])([contentRef.current], event);
|
|
10564
10564
|
var notTriggerTargetArea = Object(_popups_info_window_info_window_utils__WEBPACK_IMPORTED_MODULE_4__["notTargetAreas"])([triggerRef.current], event);
|
|
10565
10565
|
|
|
10566
|
-
if (closeOnOuterClick && notContentTargetArea && visible) {
|
|
10566
|
+
if (closeOnOuterClick && notContentTargetArea && notTriggerTargetArea && visible) {
|
|
10567
10567
|
closePopOut();
|
|
10568
10568
|
}
|
|
10569
10569
|
|
|
@@ -10579,7 +10579,7 @@ var PopOut = function PopOut(props) {
|
|
|
10579
10579
|
return function () {
|
|
10580
10580
|
document.removeEventListener('click', onBodyClick, options);
|
|
10581
10581
|
};
|
|
10582
|
-
}, [closeOnOuterClick, contentRef.current, triggerRef.current, openOnMount, visible]);
|
|
10582
|
+
}, [closeOnFirstClick, closeOnOuterClick, contentRef.current, triggerRef.current, openOnMount, visible]);
|
|
10583
10583
|
var triggerContainer = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("div", {
|
|
10584
10584
|
ref: triggerRef,
|
|
10585
10585
|
className: "sk-w-full sk-h-full",
|
|
@@ -14626,7 +14626,8 @@ var IconButtonDropdown = function IconButtonDropdown(_ref) {
|
|
|
14626
14626
|
placement: placement,
|
|
14627
14627
|
popOutContainer: popOutContainer,
|
|
14628
14628
|
trigger: button,
|
|
14629
|
-
closeOnFirstClick: true
|
|
14629
|
+
closeOnFirstClick: true,
|
|
14630
|
+
closeOnOuterClick: true
|
|
14630
14631
|
}, renderContent);
|
|
14631
14632
|
};
|
|
14632
14633
|
|