@brightspace-ui/core 3.327.0 → 3.327.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.
@@ -60,6 +60,7 @@ class ButtonIterator extends FocusMixin(PropertyRequiredMixin(LocalizeCoreElemen
60
60
  align-items: center;
61
61
  display: flex;
62
62
  gap: 6px;
63
+ height: 100%;
63
64
  justify-content: space-between;
64
65
  }
65
66
  .description {
@@ -826,9 +826,13 @@ class Calendar extends LocalizeCoreElement(LitElement) {
826
826
  // if date is not in range but we are in a dialog, _focusDate should become min or max date if possible
827
827
  if (!this._dialog) return;
828
828
 
829
- if (numDaysChange > 0 && getDateFromISODate(this.minValue) > possibleFocusDate) this._focusDate = getDateFromISODate(this.minValue);
830
- else if (numDaysChange < 0 && getDateFromISODate(this.maxValue) < possibleFocusDate) this._focusDate = getDateFromISODate(this.maxValue);
831
- else return;
829
+ if (numDaysChange > 0 && this.minValue !== undefined && getDateFromISODate(this.minValue) > possibleFocusDate) {
830
+ this._focusDate = getDateFromISODate(this.minValue);
831
+ } else if (numDaysChange < 0 && this.maxValue !== undefined && getDateFromISODate(this.maxValue) < possibleFocusDate) {
832
+ this._focusDate = getDateFromISODate(this.maxValue);
833
+ } else {
834
+ return;
835
+ }
832
836
  this._keyboardTriggeredMonthChange = true;
833
837
  if (this._focusDate.getMonth() !== this._shownMonth || this._focusDate.getFullYear() !== this._shownYear) {
834
838
  this._shownMonth = this._focusDate.getMonth();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.327.0",
3
+ "version": "3.327.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",