Angular-calendar: Refreshing view triggers beforeViewRender twice

Created on 25 Jul 2017  路  5Comments  路  Source: mattlewis92/angular-calendar

I'm submitting a ...

[x] Bug report 
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit a support request here, please ask on https://stackoverflow.com/

Bug description / Feature request


Refreshing the view manually triggers the beforeViewRender event twice.

Minimal reproduction of the problem with instructions


I just added console log on the plnkr with related refresh/re-render.
http://plnkr.co/edit/Gdp94MUAcJmHwIxco9mP?p=preview

Versions

Angular: 4.3

Calendar library: ^0.19.0

Browser name and version: Chrome 59..

Thanks for the awesome component.

Most helpful comment

The beforeViewRender function triggers thrice when click on date and view refresh .This issue still exist.How can we solve this?

All 5 comments

Thanks for reporting, this is now fixed in 0.20.0 馃槃

Hi, I'm not sure if this is related but I'm still getting beforeViewRender being called twice when using directives form CalendarCommonModule.

First EventEmmiter has the current period and second has the period I'm moving the view to.
I didn't observe this issue on on Day/Month/Week modules (only 1 call)

Added a console.warn to the event handler illustrating the issue: https://angular-g7uy4j.stackblitz.io

The beforeViewRender function triggers thrice when click on date and view refresh .This issue still exist.How can we solve this?

Same issue here

any follow up on this one?

Was this page helpful?
0 / 5 - 0 ratings