@cashub/ui 0.18.4 → 0.18.5

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.
@@ -46,7 +46,9 @@ var Month = function Month(_ref) {
46
46
  setAccordionCurrentDisplayType = _useContext.setAccordionCurrentDisplayType;
47
47
 
48
48
  var handleChangeMonth = (0, _react.useCallback)(function (month) {
49
+ // switch to the first day of the target month
49
50
  var date = new Date(selectedDate);
51
+ date.setDate(1);
50
52
  date.setMonth(month);
51
53
  setSelectedDate((0, _utils.datetimeTFormat)(date));
52
54
  setAccordionCurrentDisplayType(null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cashub/ui",
3
- "version": "0.18.4",
3
+ "version": "0.18.5",
4
4
  "private": false,
5
5
  "author": "CASHUB Team",
6
6
  "description": "CASHUB UI components library",