@telefonica/mistica 10.24.1 → 10.24.2

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [10.24.2](https://github.com/Telefonica/mistica-web/compare/v10.24.1...v10.24.2) (2022-02-22)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **Popover:** bug with close event propagation ([#421](https://github.com/Telefonica/mistica-web/issues/421)) ([0b439b6](https://github.com/Telefonica/mistica-web/commit/0b439b6cdb9ea6404d0ec2c6b50b61d99937cbc6))
7
+
1
8
  ## [10.24.1](https://github.com/Telefonica/mistica-web/compare/v10.24.0...v10.24.1) (2022-02-16)
2
9
 
3
10
 
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
5
  exports.PACKAGE_VERSION = void 0;
6
- var PACKAGE_VERSION = '10.24.1';
6
+ var PACKAGE_VERSION = '10.24.2';
7
7
  exports.PACKAGE_VERSION = PACKAGE_VERSION;
package/dist/popover.js CHANGED
@@ -302,11 +302,6 @@ var Popover = function Popover(param) {
302
302
  }, [
303
303
  isVisible
304
304
  ]);
305
- var handleClose = function handleClose() {
306
- if (onClose) {
307
- onClose();
308
- }
309
- };
310
305
  var popoverContainer = null;
311
306
  if (isVisible && targetPosition) {
312
307
  var ref2 = getPositionStyles(position, innerWidth, targetPosition, isTabletOrSmaller), containerStyles = ref2.containerStyles, arrowStyles = ref2.arrowStyles;
@@ -346,7 +341,10 @@ var Popover = function Popover(param) {
346
341
  /*#__PURE__*/ (0, _jsxRuntime).jsx("div", {
347
342
  className: classes.closeButtonIcon,
348
343
  children: /*#__PURE__*/ (0, _jsxRuntime).jsx(_iconButton.default, {
349
- onPress: handleClose,
344
+ onPress: function onPress(e) {
345
+ onClose === null || onClose === void 0 ? void 0 : onClose();
346
+ e.stopPropagation();
347
+ },
350
348
  trackingEvent: trackingEvent,
351
349
  "aria-label": texts.modalClose,
352
350
  children: /*#__PURE__*/ (0, _jsxRuntime).jsx(_iconCloseRegular.default, {
@@ -1,2 +1,2 @@
1
1
  // DO NOT EDIT THIS FILE. It's autogenerated by set-version.js
2
- export var PACKAGE_VERSION = '10.24.1';
2
+ export var PACKAGE_VERSION = '10.24.2';
@@ -270,11 +270,6 @@ var Popover = function(param) {
270
270
  }, [
271
271
  isVisible
272
272
  ]);
273
- var handleClose = function() {
274
- if (onClose) {
275
- onClose();
276
- }
277
- };
278
273
  var popoverContainer = null;
279
274
  if (isVisible && targetPosition) {
280
275
  var ref2 = getPositionStyles(position, innerWidth, targetPosition, isTabletOrSmaller), containerStyles = ref2.containerStyles, arrowStyles = ref2.arrowStyles;
@@ -314,7 +309,10 @@ var Popover = function(param) {
314
309
  /*#__PURE__*/ _jsx("div", {
315
310
  className: classes.closeButtonIcon,
316
311
  children: /*#__PURE__*/ _jsx(IconButton, {
317
- onPress: handleClose,
312
+ onPress: function(e) {
313
+ onClose === null || onClose === void 0 ? void 0 : onClose();
314
+ e.stopPropagation();
315
+ },
318
316
  trackingEvent: trackingEvent,
319
317
  "aria-label": texts.modalClose,
320
318
  children: /*#__PURE__*/ _jsx(IcnCloseRegular, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telefonica/mistica",
3
- "version": "10.24.1",
3
+ "version": "10.24.2",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",