(newMonth)
| 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({ |
no test coverage detected