rsuite 6.1.0 → 6.1.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.
@@ -381,6 +381,12 @@ const DateRangePicker = forwardRef((props, ref) => {
381
381
  const calendarKey = index === 0 ? 'start' : 'end';
382
382
  const nextCalendarDate = Array.from(calendarDateRange);
383
383
  nextCalendarDate[index] = date;
384
+
385
+ // If allowSameMonth is true, the start and end dates should be the same
386
+ if (allowSameMonth) {
387
+ nextCalendarDate[0] = date;
388
+ nextCalendarDate[1] = date;
389
+ }
384
390
  setCalendarDateRange({
385
391
  dateRange: nextCalendarDate,
386
392
  calendarKey,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rsuite",
3
- "version": "6.1.0",
3
+ "version": "6.1.1",
4
4
  "description": "A suite of react components",
5
5
  "main": "cjs/index.js",
6
6
  "module": "esm/index.js",