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 and Michael Cooper committed May 2, 2022
1 parent fc89fe5 commit f67c530
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 f67c530

Please sign in to comment.