From e753f8b25e4237b073bd5498e57351d5622fbb38 Mon Sep 17 00:00:00 2001 From: Guilherme Siquinelli Date: Mon, 14 Feb 2022 19:28:28 -0300 Subject: [PATCH] Code guide: swap deprecated method of the Date object in the datepicker dialog example (#2179) --- examples/dialog-modal/js/datepicker-dialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/dialog-modal/js/datepicker-dialog.js b/examples/dialog-modal/js/datepicker-dialog.js index 8470f3e5e1..1af029f254 100644 --- a/examples/dialog-modal/js/datepicker-dialog.js +++ b/examples/dialog-modal/js/datepicker-dialog.js @@ -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(); }