@pedidopago/ui 1.6.7 → 1.6.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/MultipleSelect/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,EAAE,EAOH,MAAM,OAAO,CAAC;AAaf,OAAO,EAAc,iBAAiB,EAAc,MAAM,SAAS,CAAC;AAEpE,aAAK,KAAK,GAAG,wBAAwB,CAAC,GAAG,CAAC,CAAC;AAI3C,QAAA,MAAM,cAAc,EAAE,EAAE,CAAC,iBAAiB,GAAG,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/MultipleSelect/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,EAAE,EAOH,MAAM,OAAO,CAAC;AAaf,OAAO,EAAc,iBAAiB,EAAc,MAAM,SAAS,CAAC;AAEpE,aAAK,KAAK,GAAG,wBAAwB,CAAC,GAAG,CAAC,CAAC;AAI3C,QAAA,MAAM,cAAc,EAAE,EAAE,CAAC,iBAAiB,GAAG,KAAK,CAiLjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -107,7 +107,9 @@ var MultipleSelect = function MultipleSelect(_ref) {
|
|
|
107
107
|
function handleClickOutSide(event) {
|
|
108
108
|
var _InputWrapperRef$curr;
|
|
109
109
|
|
|
110
|
-
|
|
110
|
+
var portalRoot = document.querySelector('#portal-root');
|
|
111
|
+
|
|
112
|
+
if (!((_InputWrapperRef$curr = InputWrapperRef.current) !== null && _InputWrapperRef$curr !== void 0 && _InputWrapperRef$curr.contains(event.target)) && !(portalRoot !== null && portalRoot !== void 0 && portalRoot.contains(event.target))) {
|
|
111
113
|
setShowOptionsArea(false);
|
|
112
114
|
}
|
|
113
115
|
}
|