question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug on dayClicked

See original GitHub issue

Describe the bug

when I click on cell (I call dayClicked method) I do http request to get data from db and after I got data, I set activeDayIsOpen as true; but my openDayEventsTemplate doesn’t opening , but activeDayIsOpen is true already

Minimal reproduction of the problem with instructions

Screenshots image

Versions

  • @angular/core: latest version
  • angular-calendar: latest version
  • Browser name and version: Chrome 76

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
mattlewis92commented, Sep 11, 2019

Thanks for that, I see the problem now! When you use OnPush change detection, angular doesn’t run change detection inside async events like setTimeout or http calls so you need to inject ChangeDetectorRef and run this.cdr.markForCheck() to manually run change detection. Heres your demo fixed: https://stackblitz.com/edit/angular6-calendar-wc9de8?file=demo/component.ts Hope that helps! 😄

0reactions
PavelGorodetchicommented, Sep 11, 2019

Anyway, thank you very much for solution ))

Read more comments on GitHub >

github_iconTop Results From Across the Web

Calendar dayClick bug - Questions - Framework7 Forum
Hello, Calendar is When using calendar.getValue or dayClick, month value is 1 month behind. for example: If I select August 11 2022, ...
Read more >
fullcalendar dayclick bug - CodePen
URL Extension Required. When linking another Pen as a resource, make sure you use a URL Extension of the type of code you...
Read more >
FullCalendar dayClick not working (does nothing)
Using an external monitor with a lot of height, the bug never happend. Only on the move, with a smaller screen, the bug...
Read more >
angular-calendar documentation - GitHub Pages
0 (2017-08-29). Bug Fixes. monthView: don't fire dayClicked output when clicking on an event and using hammerjs (283c50e), closes #318 ...
Read more >
[ABMaterial] ABMCalendar -DayClicked | B4X Programming Forum
I noticed an error during the DayClicked method in ABMCalendar. Namely, the procedure gets a date e.g. ... Bug? [ABMaterial] ABMCalendar -DayClicked.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found