aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui/calendar.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/calendar.js b/ui/calendar.js
index 05d4c229b..40884c283 100644
--- a/ui/calendar.js
+++ b/ui/calendar.js
@@ -142,6 +142,9 @@ return $.widget( "ui.calendar", {
_needsRefresh: function() {
if ( this.date.month() !== this.viewDate.month() || this.date.year() !== this.viewDate.year() ) {
+
+ // Check if the needed day is already present in our grid due
+ // to eachDay option changes (eg. other-months demo)
return !this.grid.find(
this._sanitizeSelector( "#" + this._getDayId( this.date ) )
).length;