@brightspace-ui/core 2.117.1 → 2.118.0

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.
@@ -1043,7 +1043,7 @@ export const DropdownContentMixin = superclass => class extends LocalizeCoreElem
1043
1043
 
1044
1044
  _handleFocusTrapEnter() {
1045
1045
  if (this.__applyFocus && !this.noAutoFocus) {
1046
- const content = this.getContentContainer();
1046
+ const content = this.__getWidthContainer();
1047
1047
  const focusable = getFirstFocusableDescendant(content);
1048
1048
  if (focusable) {
1049
1049
  // Removing the rAF call can allow infinite focus looping to happen in content using a focus trap
@@ -234,13 +234,13 @@ export const SwitchMixin = superclass => class extends FocusMixin(RtlMixin(super
234
234
  }
235
235
 
236
236
  _handleKeyDown(e) {
237
- // space pressed... prevent default browser scroll
238
- if (e.keyCode === 32) e.preventDefault();
237
+ // enter/space pressed... prevent default browser scroll
238
+ if (e.keyCode === 13 || e.keyCode === 32) e.preventDefault();
239
239
  }
240
240
 
241
241
  _handleKeyUp(e) {
242
- // space pressed... toggle state
243
- if (e.keyCode === 32) this._toggleState();
242
+ // enter/space pressed... toggle state
243
+ if (e.keyCode === 13 || e.keyCode === 32) this._toggleState();
244
244
  }
245
245
 
246
246
  _handleSwitchHover() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "2.117.1",
3
+ "version": "2.118.0",
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",