@pedidopago/ui 1.6.8 → 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,CA4KjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
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
- if (!((_InputWrapperRef$curr = InputWrapperRef.current) !== null && _InputWrapperRef$curr !== void 0 && _InputWrapperRef$curr.contains(event.target))) {
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pedidopago/ui",
3
- "version": "1.6.8",
3
+ "version": "1.6.9",
4
4
  "description": "Quick build beatiful Pedido Pago apps",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",