0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

🐛 Fixed "scheduled at" datepicker not showing correct month when opening (#860)

closes https://github.com/TryGhost/Ghost/issues/8891

- set the `center` option as well as the `selected` option for `{{power-datepicker}}` inside `{{gh-date-time-picker}}` to force the month view to jump to the correct date when the selection changes
This commit is contained in:
Kevin Ansfield 2017-09-19 03:51:52 +01:00 committed by Aileen Nowak
parent 1cab2dd66f
commit aa5b85d7c1

View file

@ -1,6 +1,7 @@
<div class="gh-date-time-picker"> <div class="gh-date-time-picker">
{{#power-datepicker {{#power-datepicker
selected=_date selected=_date
center=_date
onSelect=(action "setDate" value="date") onSelect=(action "setDate" value="date")
renderInPlace=true renderInPlace=true
disabled=disabled as |dp| disabled=disabled as |dp|