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.
- package/CHANGELOG.md +11 -0
- package/cjs/DateRangePicker/DateRangePicker.js +6 -0
- package/dist/rsuite.js +18 -51
- package/dist/rsuite.js.map +1 -1
- package/dist/rsuite.min.js +1 -1
- package/dist/rsuite.min.js.LICENSE.txt +0 -20
- package/dist/rsuite.min.js.map +1 -1
- package/esm/DateRangePicker/DateRangePicker.js +6 -0
- package/package.json +1 -1
|
@@ -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,
|