@stenajs-webui/calendar 15.3.0 → 15.4.0

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/dist/index.js CHANGED
@@ -647,8 +647,7 @@ var WithMonthSwitcherBelow = function (_a) {
647
647
  var MonthPickerCell = function (_a) {
648
648
  var value = _a.value, onValueChange = _a.onValueChange, month = _a.month;
649
649
  var label = React.useMemo(function () {
650
- var now = new Date();
651
- now.setMonth(month);
650
+ var now = new Date(2000, month, 1);
652
651
  return dateFns.format(now, "MMM");
653
652
  }, [month]);
654
653
  return (React__namespace.createElement(core.Row, { width: "64px", justifyContent: "center", spacing: 0.5, indent: 0.5 }, value === month ? (React__namespace.createElement(elements.PrimaryButton, { label: label, onClick: function () { return onValueChange && onValueChange(month); } })) : (React__namespace.createElement(elements.FlatButton, { label: label, onClick: function () { return onValueChange && onValueChange(month); } }))));