@gpa-gemstone/react-forms 1.1.38 → 1.1.39

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.
@@ -111,7 +111,7 @@ function Calender(props) {
111
111
  React.createElement("td", { style: { width: 20, padding: 5 } }, "FR"),
112
112
  React.createElement("td", { style: { width: 20, padding: 5 } }, "SA")) : null),
113
113
  React.createElement("tbody", null,
114
- mode === 'month' ? weeks.map(function (w) { return React.createElement("tr", { key: w.sunday.isoWeekYear(), style: { height: 20, lineHeight: '20px' } },
114
+ mode === 'month' ? weeks.map(function (w) { return React.createElement("tr", { key: w.sunday.isoWeek(), style: { height: 20, lineHeight: '20px' } },
115
115
  React.createElement(DayCell, { date: w.sunday, month: month, day: props.DateTime.date(), onClick: function (evt) { evt.stopPropagation(); setDate(w.sunday); } }),
116
116
  React.createElement(DayCell, { date: w.monday, month: month, day: props.DateTime.date(), onClick: function (evt) { evt.stopPropagation(); setDate(w.monday); } }),
117
117
  React.createElement(DayCell, { date: w.tuesday, month: month, day: props.DateTime.date(), onClick: function (evt) { evt.stopPropagation(); setDate(w.tuesday); } }),
@@ -142,7 +142,7 @@ var DayCell = function (props) {
142
142
  var _b = React.useState(false), hover = _b[0], setHover = _b[1];
143
143
  var _c = React.useState(false), disabled = _c[0], setDisabled = _c[1];
144
144
  React.useEffect(function () {
145
- setActive(props.date.date() === props.day);
145
+ setActive(props.date.date() === props.day && props.month === props.date.month());
146
146
  setDisabled(props.date.month() !== props.month);
147
147
  }, [props.month, props.date, props.day]);
148
148
  var color = (disabled ? '#777' : (active ? '#fff' : undefined));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpa-gemstone/react-forms",
3
- "version": "1.1.38",
3
+ "version": "1.1.39",
4
4
  "description": "React Form modules for gpa webapps",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",