Skip to content

Commit c5f2038

Browse files
authored
fix(Calendar): fixed the btn status is incorrect when the switchMode and maxData are used together (#3366)
1 parent c011f8d commit c5f2038

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/calendar/calendar.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ export default class Calendar extends SuperComponent {
179179

180180
const preYearBtnDisable = _prevYearTimestamp < _minTimestamp || _prevMonthTimestamp < _minTimestamp;
181181
const prevMonthBtnDisable = _prevMonthTimestamp < _minTimestamp;
182-
const nextYearBtnDisable = _nextMonthTimestamp >= _maxTimestamp || _nextYearTimestamp >= _maxTimestamp;
183-
const nextMonthBtnDisable = _nextMonthTimestamp >= _maxTimestamp;
182+
const nextYearBtnDisable = _nextMonthTimestamp > _maxTimestamp || _nextYearTimestamp > _maxTimestamp;
183+
const nextMonthBtnDisable = _nextMonthTimestamp > _maxTimestamp;
184184

185185
this.setData({
186186
actionButtons: {

0 commit comments

Comments
 (0)