@deque/cauldron-react 6.25.3-canary.516a5c87 → 6.25.3-canary.5fbe41dc
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/lib/index.js +7 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -5351,8 +5351,13 @@ var ActionMenu = React.forwardRef(function (_a, ref) {
|
|
|
5351
5351
|
setOpen(false);
|
|
5352
5352
|
}
|
|
5353
5353
|
}, []);
|
|
5354
|
-
var handleOverlayBlur = React.useCallback(function () {
|
|
5355
|
-
|
|
5354
|
+
var handleOverlayBlur = React.useCallback(function (event) {
|
|
5355
|
+
var _a, _b;
|
|
5356
|
+
var relatedTarget = event.relatedTarget;
|
|
5357
|
+
if (!((_a = actionMenuRef.current) === null || _a === void 0 ? void 0 : _a.contains(relatedTarget)) &&
|
|
5358
|
+
!((_b = triggerRef.current) === null || _b === void 0 ? void 0 : _b.contains(relatedTarget))) {
|
|
5359
|
+
setOpen(false);
|
|
5360
|
+
}
|
|
5356
5361
|
}, []);
|
|
5357
5362
|
var handleAction = React.useCallback(function (key, event) {
|
|
5358
5363
|
// istanbul ignore else
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deque/cauldron-react",
|
|
3
|
-
"version": "6.25.3-canary.
|
|
3
|
+
"version": "6.25.3-canary.5fbe41dc",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "Fully accessible react components library for Deque Cauldron",
|
|
6
6
|
"homepage": "https://cauldron.dequelabs.com/",
|