@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.
|
@@ -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 &&
|
|
830
|
-
|
|
831
|
-
else
|
|
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.
|
|
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",
|