Skip to content

Commit

Permalink
Fix #2557: Calendar stepMinute=1 fixed (#2559)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Jan 13, 2022
1 parent 767aad1 commit c1a5cd6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/lib/calendar/Calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,11 @@ export class Calendar extends Component {

doStepMinute(currentMinute, step) {
if (this.props.stepMinute <= 1) {
return currentMinute;
if (!step) {
return currentMinute;
} else {
return currentMinute + step;
}
}
if (!step) {
step = this.props.stepMinute;
Expand Down

0 comments on commit c1a5cd6

Please sign in to comment.