MCPcopy Index your code
hub / github.com/react-dates/react-dates / getPrevScrollableMonths

Method getPrevScrollableMonths

src/components/DayPicker.jsx:738–748  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

736 }
737
738 getPrevScrollableMonths(e) {
739 const { numberOfMonths, onGetPrevScrollableMonths } = this.props;
740 if (e) e.preventDefault();
741
742 if (onGetPrevScrollableMonths) onGetPrevScrollableMonths(e);
743
744 this.setState(({ currentMonth, scrollableMonthMultiple }) => ({
745 currentMonth: currentMonth.clone().subtract(numberOfMonths, 'month'),
746 scrollableMonthMultiple: scrollableMonthMultiple + 1,
747 }));
748 }
749
750 maybeTransitionNextMonth(newFocusedDate) {
751 const { numberOfMonths } = this.props;

Callers 1

DayPicker_spec.jsxFile · 0.80

Calls 1

Tested by

no test coverage detected