@brightspace-ui/core 2.117.1 → 2.117.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.
@@ -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.117.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",