@brightspace-ui/core 2.155.0 → 2.155.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.
@@ -407,12 +407,16 @@ class TagList extends LocalizeCoreElement(InteractiveMixin(ArrowKeysMixin(LitEle
|
|
407
407
|
|
408
408
|
if (!this.shadowRoot) return;
|
409
409
|
|
410
|
+
const isMoreButton = e.target.classList.contains('d2l-tag-list-button-show-more');
|
410
411
|
await this.updateComplete;
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
412
|
+
await new Promise((r) => setTimeout(r, 100)); // wait for items to appear before focusing
|
413
|
+
if (isMoreButton) {
|
414
|
+
this._items[this._chompIndex].focus();
|
415
|
+
} else {
|
416
|
+
this.shadowRoot.querySelector('.d2l-tag-list-button')?.focus();
|
415
417
|
}
|
418
|
+
/** @ignore */
|
419
|
+
this.dispatchEvent(new CustomEvent('d2l-tag-list-focus', { bubbles: false, composed: false }));
|
416
420
|
}
|
417
421
|
}
|
418
422
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@brightspace-ui/core",
|
3
|
-
"version": "2.155.
|
3
|
+
"version": "2.155.1",
|
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",
|