@kaizen/components 1.54.3 → 1.54.4

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.
@@ -80,7 +80,11 @@ var MenuDropdown = function (_a) {
80
80
  scrollLock: false,
81
81
  noIsolation: true,
82
82
  shards: referenceElement ? [referenceElement] : undefined,
83
- onEscapeKey: hideMenuDropdown
83
+ onEscapeKey: hideMenuDropdown,
84
+ returnFocus: function () {
85
+ referenceElement === null || referenceElement === void 0 ? void 0 : referenceElement.focus();
86
+ return false;
87
+ }
84
88
  }, React__default.default.createElement("div", tslib.__assign({
85
89
  id: id,
86
90
  ref: setPopperElement
@@ -72,7 +72,11 @@ const MenuDropdown = /*#__PURE__*/function () {
72
72
  scrollLock: false,
73
73
  noIsolation: true,
74
74
  shards: referenceElement ? [referenceElement] : undefined,
75
- onEscapeKey: hideMenuDropdown
75
+ onEscapeKey: hideMenuDropdown,
76
+ returnFocus: function () {
77
+ referenceElement === null || referenceElement === void 0 ? void 0 : referenceElement.focus();
78
+ return false;
79
+ }
76
80
  }, /*#__PURE__*/React.createElement("div", __assign({
77
81
  id: id,
78
82
  ref: setPopperElement
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaizen/components",
3
- "version": "1.54.3",
3
+ "version": "1.54.4",
4
4
  "description": "Kaizen component library",
5
5
  "author": "Geoffrey Chong <geoff.chong@cultureamp.com>",
6
6
  "homepage": "https://cultureamp.design",
@@ -113,6 +113,10 @@ export const MenuDropdown = ({
113
113
  noIsolation
114
114
  shards={referenceElement ? [referenceElement] : undefined}
115
115
  onEscapeKey={hideMenuDropdown}
116
+ returnFocus={() => {
117
+ referenceElement?.focus()
118
+ return false
119
+ }}
116
120
  >
117
121
  {/* eslint-disable-next-line
118
122
  jsx-a11y/click-events-have-key-events,