@brightspace-ui/core 2.114.1 → 2.114.2

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.
@@ -133,6 +133,15 @@ export const SelectionMixin = superclass => class extends RtlMixin(CollectionMix
133
133
  this._updateSelectionObservers();
134
134
  }
135
135
 
136
+ _focusSelectAll() {
137
+ for (const observer of this._selectionObservers.values()) {
138
+ if (observer.tagName === 'D2L-SELECTION-SELECT-ALL') {
139
+ observer.focus();
140
+ break;
141
+ }
142
+ }
143
+ }
144
+
136
145
  _handleRadioKeyDown(e) {
137
146
  // check composed path for radio (e.target could be d2l-list-item or other element due to retargeting)
138
147
  if (!e.composedPath()[0].classList.contains('d2l-selection-input-radio')) return;
@@ -40,7 +40,10 @@ class SelectAllPages extends FocusMixin(LocalizeCoreElement(SelectionObserverMix
40
40
  }
41
41
 
42
42
  _handleClick() {
43
- if (this._provider) this._provider.setSelectionForAll(true, true);
43
+ if (!this._provider) return;
44
+
45
+ this._provider.setSelectionForAll(true, true);
46
+ this._provider._focusSelectAll();
44
47
  }
45
48
 
46
49
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "2.114.1",
3
+ "version": "2.114.2",
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",