Angular-calendar: window.clearTimeout

Created on 21 Jun 2019  路  12Comments  路  Source: mattlewis92/angular-calendar

Describe the bug

On the calendar - doesn't matter what view - when I try dragging an event to change it's date, I get an error saying "window.clearTimeout is not a function"

Minimal reproduction of the problem with instructions

On the demos page of angular-calendar, on the kitchen sink example, select edit in stackblitz and try moving any event on the calendar around.

Here's a link to a stackblitz instance https://nrtgix.run.stackblitz.io

Screenshots

draggable error

Versions

  • @angular/core: "8.0.0"
  • angular-calendar: "0.27.11"
  • Browser name and version: Google Chrome v 74.0.3729.169

Most helpful comment

Yea it works now with the latest update.
Thanks a bunch 鉂も潳

All 12 comments

Thanks so much for opening an issue! If you'd like me to give priority to answering your issue or would just like to support this project, then please consider supporting me on Patreon

Just tested locally, for some reason this only happened when running the code on stackblitz.

That's very weird, I think it's a stackblitz specific issue, but I think I found a workaround. Thanks for reporting! 馃槃

That's very weird, I think it's a stackblitz specific issue, but I think I found a workaround. Thanks for reporting! 馃槃

I thought so too 馃槀, glad you were able to find a workaround for it, however I think the workaround may have introduced a new issue 馃槶.

Now whenever I click on one of the labels in the modal that pop up, it always triggers the dropped or resized event rather than the appropriate action attached to the label that was clicked - unless draggable is set to false.

This happens both locally and on stackblitz as well, but please take a look at this link to see it in action
https://jddlfw.run.stackblitz.io/

Thank you for the good work you do.

I'm not able to reproduce that: https://stackblitz.com/edit/angular-jucd7w?file=demo/component.ts

I'm not able to load your stackblitz though, can you share the edit link instead?

Here is a link:
https://stackblitz.com/edit/angular-jucd7w

Pretty much your kitchen sink example

Everything seems to work for me?

Kapture 2019-06-27 at 10 21 44

You're right it works fine on Microsoft edge, however when I switch to Google Chrome it comes back.

https___angular-jucd7w stackblitz io

What browser are you running it on?

I'm using chrome 75 and it works for me there, can you try in private browsing in case it's a chrome extension?

Hey @mattlewis92 I restarted my computer and it worked temporarily, however after I refreshed the page the issue came back.

Also tried in incognito - even without all extensions - to no avail

Actually I think you might just be moving the mouse like 1px when dragging, can you give 0.27.12 a go which might fix it?

Yea it works now with the latest update.
Thanks a bunch 鉂も潳

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Sushma-tiwari picture Sushma-tiwari  路  3Comments

no-more picture no-more  路  3Comments

ntsiatinis picture ntsiatinis  路  4Comments

arvind-das picture arvind-das  路  3Comments

teodoramalec picture teodoramalec  路  4Comments