ember-power-calendar
ember-power-calendar copied to clipboard
Next and Previous button navigates from current date.
Hi,
I have a date picker with preselected value (ex:05/08/1988). When I click the left arrow(Previous button) to change the date to 30/01/1982, the calendar shows the previous month from current month(June 2017). similar for 'Next' arrow as well.
Is this known behaviour or issue with my implementation? any help much appreciated.
thanks in advance.
Can you provide a reproduction, perhaps with ember-twiddle?
https://ember-twiddle.com/73a24d08da148f6308f27f779408cf84?openFiles=templates.application.hbs%2C
Same issue here
@selva-v Your center2-property is undefined. If center of power-calendar is undefined, the calendar is centered at current-date.
@selva-v on your example, the center of the calendar is the current month. Also, you need to add <div id="ember-basic-dropdown-wormhole"></div>
somewhere in your html.