@stenajs-webui/calendar 15.3.0 → 15.3.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # v15.3.1 (Wed Mar 30 2022)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - Render only one March month [#444](https://github.com/StenaIT/stenajs-webui/pull/444) ([@lindskogen](https://github.com/lindskogen))
6
+
7
+ #### Authors: 1
8
+
9
+ - Johan Lindskogen ([@lindskogen](https://github.com/lindskogen))
10
+
11
+ ---
12
+
1
13
  # v15.2.1 (Tue Mar 01 2022)
2
14
 
3
15
  #### 🐛 Bug Fix
package/dist/index.es.js CHANGED
@@ -621,8 +621,7 @@ var WithMonthSwitcherBelow = function (_a) {
621
621
  var MonthPickerCell = function (_a) {
622
622
  var value = _a.value, onValueChange = _a.onValueChange, month = _a.month;
623
623
  var label = useMemo(function () {
624
- var now = new Date();
625
- now.setMonth(month);
624
+ var now = new Date(2000, month, 1);
626
625
  return format(now, "MMM");
627
626
  }, [month]);
628
627
  return (React.createElement(Row, { width: "64px", justifyContent: "center", spacing: 0.5, indent: 0.5 }, value === month ? (React.createElement(PrimaryButton, { label: label, onClick: function () { return onValueChange && onValueChange(month); } })) : (React.createElement(FlatButton, { label: label, onClick: function () { return onValueChange && onValueChange(month); } }))));