@elastic/eui 93.5.0 → 93.5.1

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.
@@ -440,7 +440,10 @@ export var EuiSelectableList = /*#__PURE__*/function (_Component) {
440
440
  var activeOptionId = "#".concat(makeOptionId(activeOptionIndex));
441
441
  var activeOptionEl = (_this$listBoxRef = this.listBoxRef) === null || _this$listBoxRef === void 0 ? void 0 : _this$listBoxRef.querySelector(activeOptionId);
442
442
  if (activeOptionEl) {
443
- activeOptionEl.scrollIntoView({
443
+ var _activeOptionEl$scrol;
444
+ // TODO: we can remove scrollIntoView's conditional chaining once jsdom stubs it
445
+ // @see https://github.com/jsdom/jsdom/issues/1695
446
+ (_activeOptionEl$scrol = activeOptionEl.scrollIntoView) === null || _activeOptionEl$scrol === void 0 ? void 0 : _activeOptionEl$scrol.call(activeOptionEl, {
444
447
  block: 'nearest'
445
448
  });
446
449
  }
@@ -445,7 +445,10 @@ var EuiSelectableList = /*#__PURE__*/function (_Component) {
445
445
  var activeOptionId = "#".concat(makeOptionId(activeOptionIndex));
446
446
  var activeOptionEl = (_this$listBoxRef = this.listBoxRef) === null || _this$listBoxRef === void 0 ? void 0 : _this$listBoxRef.querySelector(activeOptionId);
447
447
  if (activeOptionEl) {
448
- activeOptionEl.scrollIntoView({
448
+ var _activeOptionEl$scrol;
449
+ // TODO: we can remove scrollIntoView's conditional chaining once jsdom stubs it
450
+ // @see https://github.com/jsdom/jsdom/issues/1695
451
+ (_activeOptionEl$scrol = activeOptionEl.scrollIntoView) === null || _activeOptionEl$scrol === void 0 ? void 0 : _activeOptionEl$scrol.call(activeOptionEl, {
449
452
  block: 'nearest'
450
453
  });
451
454
  }
@@ -433,7 +433,10 @@ export var EuiSelectableList = /*#__PURE__*/function (_Component) {
433
433
  var activeOptionId = "#".concat(makeOptionId(activeOptionIndex));
434
434
  var activeOptionEl = (_this$listBoxRef = this.listBoxRef) === null || _this$listBoxRef === void 0 ? void 0 : _this$listBoxRef.querySelector(activeOptionId);
435
435
  if (activeOptionEl) {
436
- activeOptionEl.scrollIntoView({
436
+ var _activeOptionEl$scrol;
437
+ // TODO: we can remove scrollIntoView's conditional chaining once jsdom stubs it
438
+ // @see https://github.com/jsdom/jsdom/issues/1695
439
+ (_activeOptionEl$scrol = activeOptionEl.scrollIntoView) === null || _activeOptionEl$scrol === void 0 ? void 0 : _activeOptionEl$scrol.call(activeOptionEl, {
437
440
  block: 'nearest'
438
441
  });
439
442
  }
@@ -439,7 +439,10 @@ var EuiSelectableList = /*#__PURE__*/function (_Component) {
439
439
  var activeOptionId = "#".concat(makeOptionId(activeOptionIndex));
440
440
  var activeOptionEl = (_this$listBoxRef = this.listBoxRef) === null || _this$listBoxRef === void 0 ? void 0 : _this$listBoxRef.querySelector(activeOptionId);
441
441
  if (activeOptionEl) {
442
- activeOptionEl.scrollIntoView({
442
+ var _activeOptionEl$scrol;
443
+ // TODO: we can remove scrollIntoView's conditional chaining once jsdom stubs it
444
+ // @see https://github.com/jsdom/jsdom/issues/1695
445
+ (_activeOptionEl$scrol = activeOptionEl.scrollIntoView) === null || _activeOptionEl$scrol === void 0 ? void 0 : _activeOptionEl$scrol.call(activeOptionEl, {
443
446
  block: 'nearest'
444
447
  });
445
448
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@elastic/eui",
3
3
  "description": "Elastic UI Component Library",
4
- "version": "93.5.0",
4
+ "version": "93.5.1",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "lib",
7
7
  "module": "es",
@@ -440,7 +440,10 @@ var EuiSelectableList = /*#__PURE__*/function (_Component) {
440
440
  var activeOptionId = "#".concat(makeOptionId(activeOptionIndex));
441
441
  var activeOptionEl = (_this$listBoxRef = this.listBoxRef) === null || _this$listBoxRef === void 0 ? void 0 : _this$listBoxRef.querySelector(activeOptionId);
442
442
  if (activeOptionEl) {
443
- activeOptionEl.scrollIntoView({
443
+ var _activeOptionEl$scrol;
444
+ // TODO: we can remove scrollIntoView's conditional chaining once jsdom stubs it
445
+ // @see https://github.com/jsdom/jsdom/issues/1695
446
+ (_activeOptionEl$scrol = activeOptionEl.scrollIntoView) === null || _activeOptionEl$scrol === void 0 ? void 0 : _activeOptionEl$scrol.call(activeOptionEl, {
444
447
  block: 'nearest'
445
448
  });
446
449
  }