@mmb-digital/ds-lilly 0.10.8 → 0.10.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.
Files changed (2) hide show
  1. package/dist/ds-lilly.js +4 -1
  2. package/package.json +1 -1
package/dist/ds-lilly.js CHANGED
@@ -109044,6 +109044,7 @@ var Select2 = function (_a) {
109044
109044
  (_f = document.getElementById(itemElementId)) === null || _f === void 0 ? void 0 : _f.scrollIntoView({ block: 'nearest' });
109045
109045
  }
109046
109046
  }, [isCategorised, name]);
109047
+ var focusSelect = function () { return setTimeout(function () { var _a; return (_a = document.getElementById(name + "_button")) === null || _a === void 0 ? void 0 : _a.focus(); }); };
109047
109048
  var handleComboBoxClick = function () {
109048
109049
  if (!isDropdownVisible) {
109049
109050
  setTimeout(function () {
@@ -109061,7 +109062,7 @@ var Select2 = function (_a) {
109061
109062
  }, 100);
109062
109063
  }
109063
109064
  if (isDropdownVisible) {
109064
- setTimeout(function () { var _a; return (_a = document.getElementById(name + "_button")) === null || _a === void 0 ? void 0 : _a.focus(); }, 100);
109065
+ focusSelect();
109065
109066
  }
109066
109067
  setIsDropdownVisible(!isDropdownVisible);
109067
109068
  };
@@ -109077,10 +109078,12 @@ var Select2 = function (_a) {
109077
109078
  var handleOptionClick = function (item) {
109078
109079
  propagateChange(item);
109079
109080
  setIsDropdownVisible(false);
109081
+ focusSelect();
109080
109082
  };
109081
109083
  var handleEmptyOptionClick = function () {
109082
109084
  propagateChange();
109083
109085
  setIsDropdownVisible(false);
109086
+ focusSelect();
109084
109087
  };
109085
109088
  var selectFocusedItem = function () {
109086
109089
  var itemIndex = itemsIndex[currentItemPosition];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mmb-digital/ds-lilly",
3
- "version": "0.10.8",
3
+ "version": "0.10.9",
4
4
  "description": "MMB LILLY design system",
5
5
  "license": "UNLICENSED",
6
6
  "sideEffects": false,