Sets the currently-selected month based on a model value.
(value: DateRange<D> | D | null)
| 433 | |
| 434 | /** Sets the currently-selected month based on a model value. */ |
| 435 | private _setSelectedMonth(value: DateRange<D> | D | null) { |
| 436 | if (value instanceof DateRange) { |
| 437 | this._selectedMonth.set( |
| 438 | this._getMonthInCurrentYear(value.start) || this._getMonthInCurrentYear(value.end), |
| 439 | ); |
| 440 | } else { |
| 441 | this._selectedMonth.set(this._getMonthInCurrentYear(value)); |
| 442 | } |
| 443 | } |
| 444 | } |
no test coverage detected