@brightspace-ui/core 3.21.0 → 3.21.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.
@@ -1030,6 +1030,9 @@ export const DropdownContentMixin = superclass => class extends LocalizeCoreElem
1030
1030
  leftOverride = `${Math.max(window.innerWidth - window.screen.width, 0)}px`;
1031
1031
  }
1032
1032
 
1033
+ if (minWidthOverride > maxWidthOverride) {
1034
+ minWidthOverride = maxWidthOverride;
1035
+ }
1033
1036
  const widthStyle = {
1034
1037
  maxWidth: maxWidthOverride,
1035
1038
  minWidth: minWidthOverride,
@@ -124,7 +124,7 @@ export const InteractiveMixin = superclass => class extends LocalizeCoreElement(
124
124
  }
125
125
 
126
126
  async _handleInteractiveKeyDown(e) {
127
- if (this._interactive && e.keyCode === 9) e.stopPropagation(); // tab
127
+ if (this._interactive && e.keyCode !== 27) e.stopPropagation(); // stop propagation for any key other than escape
128
128
  }
129
129
 
130
130
  _handleInteractiveToggleBlur() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.21.0",
3
+ "version": "3.21.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",