Skip to content

Commit

Permalink
Merge "Initialize calendar with default date in DateTimeInputWidget"
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins-bot authored and Gerrit Code Review committed Jun 20, 2024
2 parents 57b4204 + 95702a9 commit 74a7f1d
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,11 @@
.append( this.$handle );

if ( this.calendar ) {
const date = this.getValueAsDate();
this.calendar.setSelected( date );
if ( date ) {
this.calendar.setFocusedDate( date );
}
this.$element.append( this.calendar.$element );
}
};
Expand Down

0 comments on commit 74a7f1d

Please sign in to comment.