terra-popup
Advanced tools
Comparing version 6.71.0 to 6.71.1
@@ -5,2 +5,7 @@ # Changelog | ||
## 6.71.1 - (October 11, 2023) | ||
* Fixed | ||
* Fixed popup click events propagating to elements underneath it. | ||
## 6.71.0 - (October 3, 2023) | ||
@@ -7,0 +12,0 @@ |
@@ -26,4 +26,4 @@ "use strict"; | ||
var _PopupWidths = _interopRequireDefault(require("./PopupWidths")); | ||
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | ||
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } | ||
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | ||
@@ -111,3 +111,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | ||
*/ | ||
ariaLabel: _propTypes.default.string | ||
ariaLabel: _propTypes.default.string, | ||
/** | ||
* Callback function to handle click events on the popup. | ||
*/ | ||
onClick: _propTypes.default.func | ||
}; | ||
@@ -273,3 +277,4 @@ var defaultProps = { | ||
isWidthAutomatic: this.props.contentWidth === 'auto', | ||
isFocusedDisabled: this.props.isContentFocusDisabled | ||
isFocusedDisabled: this.props.isContentFocusDisabled, | ||
onClick: this.props.onClick | ||
}), this.props.children); | ||
@@ -276,0 +281,0 @@ } |
{ | ||
"name": "terra-popup", | ||
"main": "lib/Popup.js", | ||
"version": "6.71.0", | ||
"version": "6.71.1", | ||
"description": "The Terra Popup is higher order component that launches terra-hookshot positioned content with the ability to display a dynamic arrow.", | ||
@@ -58,3 +58,3 @@ "repository": { | ||
}, | ||
"gitHead": "fcadf63558e79b6286eb8ea24a1a74fa88227c81" | ||
"gitHead": "df7b761a0dd855c827509a0bb5946613cac15b18" | ||
} |
@@ -104,2 +104,6 @@ import React from 'react'; | ||
ariaLabel: PropTypes.string, | ||
/** | ||
* Callback function to handle click events on the popup. | ||
*/ | ||
onClick: PropTypes.func, | ||
}; | ||
@@ -256,2 +260,3 @@ | ||
isFocusedDisabled={this.props.isContentFocusDisabled} | ||
onClick={this.props.onClick} | ||
> | ||
@@ -258,0 +263,0 @@ {this.props.children} |
153732
2545