@brightspace-ui/core 2.186.4 → 2.186.5

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.
@@ -346,13 +346,12 @@ class TagList extends LocalizeCoreElement(InteractiveMixin(ArrowKeysMixin(LitEle
346
346
 
347
347
  _handleItemDeleted(e) {
348
348
  const rootTarget = e.composedPath()[0];
349
- const children = this._getVisibleEffectiveChildren();
350
- const itemIndex = children.indexOf(rootTarget);
349
+ const itemIndex = this._items.slice().indexOf(rootTarget);
351
350
 
352
- if (children.length <= 1) return;
351
+ if (this._items.length <= 1) return;
353
352
 
354
353
  setTimeout(() => {
355
- const focusableElem = children[itemIndex - 1] || (children[itemIndex] === e.target ? children[itemIndex + 1] : children[itemIndex]);
354
+ const focusableElem = this._items[itemIndex - 1] || (this._items[itemIndex] === e.target ? this._items[itemIndex + 1] : this._items[itemIndex]);
356
355
  focusableElem.focus();
357
356
  }, this.clearFocusTimeout);
358
357
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "2.186.4",
3
+ "version": "2.186.5",
4
4
  "description": "A collection of accessible, free, open-source web components for building Brightspace applications",
5
5
  "type": "module",
6
6
  "repository": "https://github.com/BrightspaceUI/core.git",
@@ -45,7 +45,6 @@
45
45
  "author": "D2L Corporation",
46
46
  "license": "Apache-2.0",
47
47
  "devDependencies": {
48
- "@babel/eslint-parser": "^7",
49
48
  "@brightspace-ui/stylelint-config": "^1",
50
49
  "@brightspace-ui/testing": "^1",
51
50
  "@open-wc/semantic-dom-diff": "^0.20",