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

Method getFocusedDay

src/components/DayPicker.jsx:679–692  ·  view source on GitHub ↗
(newMonth)

Source from the content-addressed store, hash-verified

677 }
678
679 getFocusedDay(newMonth) {
680 const { getFirstFocusableDay, numberOfMonths } = this.props;
681
682 let focusedDate;
683 if (getFirstFocusableDay) {
684 focusedDate = getFirstFocusableDay(newMonth);
685 }
686
687 if (newMonth && (!focusedDate || !isDayVisible(focusedDate, newMonth, numberOfMonths))) {
688 focusedDate = newMonth.clone().startOf('month');
689 }
690
691 return focusedDate;
692 }
693
694 setMonthTitleHeight(monthTitleHeight) {
695 this.setState({

Calls 1

isDayVisibleFunction · 0.85

Tested by

no test coverage detected