@brightspace-ui/core 3.332.0 → 3.333.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.
@@ -163,7 +163,9 @@ class Menu extends PropertyRequiredMixin(ThemeMixin(HierarchicalViewMixin(LitEle
163
163
  }
164
164
  }
165
165
 
166
- resetFocusables() {
166
+ resetFocusables(isActiveView) {
167
+ const focusable = this._getTabFocusable();
168
+ if (isActiveView && focusable.getRootNode().activeElement === focusable) return;
167
169
  this._getTabFocusable()?.setAttribute('tabindex', '-1');
168
170
  }
169
171
 
@@ -281,8 +283,8 @@ class Menu extends PropertyRequiredMixin(ThemeMixin(HierarchicalViewMixin(LitEle
281
283
  if (returnItem) returnItem.setAttribute('text', this.label);
282
284
  }
283
285
 
284
- _onHideComplete() {
285
- this.resetFocusables();
286
+ _onHideComplete(e) {
287
+ this.resetFocusables(e.detail.activeView === this);
286
288
  this.active = this.isActive();
287
289
  }
288
290
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.332.0",
3
+ "version": "3.333.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",