Skip to content

Commit

Permalink
Enable changeYear option for datepicker
Browse files Browse the repository at this point in the history
  • Loading branch information
brianjhanson committed Jan 2, 2025
1 parent 2b2de25 commit 1ef7b1a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/web/assets/cp/CpAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,7 @@ private function _datepickerOptions(Locale $formattingLocale, Locale $locale, ?U
{
return [
'constrainInput' => false,
'changeYear' => true,
'dateFormat' => $formattingLocale->getDateFormat(Locale::LENGTH_SHORT, Locale::FORMAT_JUI),
'dayNames' => $locale->getWeekDayNames(Locale::LENGTH_FULL),
'dayNamesMin' => $locale->getWeekDayNames(Locale::LENGTH_ABBREVIATED),
Expand Down

0 comments on commit 1ef7b1a

Please sign in to comment.