Skip to content

Commit

Permalink
fix: infinite loop on Datepicker (buefy#3877)
Browse files Browse the repository at this point in the history
- Fixes the bug that `Datepicker` ended up with an infinite loop when a
  user tried to move focus onto an unselectable cell.

  Also related to ntohq#43
  • Loading branch information
kikuomax committed Jan 5, 2024
1 parent 77d2295 commit 070d433
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ export default {
(!this.maxDate || nextDay < this.maxDate) &&
!this.selectableDate(nextDay)
) {
nextDay.setDate(day.getDate() + Math.sign(inc))
nextDay.setDate(nextDay.getDate() + Math.sign(inc))
}
this.setRangeHoverEndDate(nextDay)
this.$emit('change-focus', nextDay)
Expand Down

0 comments on commit 070d433

Please sign in to comment.