Skip to content

Commit

Permalink
Code guide: swap deprecated method of the Date object in the datepick…
Browse files Browse the repository at this point in the history
…er dialog example (#2179)
  • Loading branch information
guiseek authored Feb 14, 2022
1 parent 7e50365 commit e753f8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/dialog-modal/js/datepicker-dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ DatePickerDialog.prototype.moveFocusToDay = function (day) {

if (
d.getMonth() != this.focusDay.getMonth() ||
d.getYear() != this.focusDay.getYear()
d.getFullYear() != this.focusDay.getFullYear()
) {
this.updateGrid();
}
Expand Down

0 comments on commit e753f8b

Please sign in to comment.