calendar icon indicating copy to clipboard operation
calendar copied to clipboard

Only show one panel for RangeCalendar, mode={['date']} doesnt work

Open oskarleonard opened this issue 6 years ago • 1 comments

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?

oskarleonard avatar Feb 19 '19 10:02 oskarleonard

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%;
  }
}

oskarleonard avatar Feb 19 '19 10:02 oskarleonard