calendar
calendar copied to clipboard
Only show one panel for RangeCalendar, mode={['date']} doesnt work
From the doc API i can see that the default value is mode={['date', 'date']} which shows two panels, so i would then expect mode={['date']} to only show one panel. Or how im i supposed to hide second panel?
Created a quick MR here to add this feature. https://github.com/react-component/calendar/pull/508
If author thinks this is a good idea i can implement the styling for this as well. Currently im doing
:global {
// Override full calender default styles
.rc-calendar-range-left {
width: 100%;
}
}