kalendar icon indicating copy to clipboard operation
kalendar copied to clipboard

TypeError: Cannot read property 'distance' of null

Open magarrent opened this issue 5 years ago • 5 comments

Hey there, it appears when (Ex):

day_starts_at: 8 day_ends_at: 22

And the actual time is more than 22!

magarrent avatar Dec 03 '19 21:12 magarrent

Can you create a reproducable codesandbox or jsfiddle link or something I could debug this on ? Also, update to latest version of the library, it should work directly now.

altinselimi avatar Mar 07 '20 12:03 altinselimi

Also facing this issue. If the time pointer is less or more than the specified times, I get a distance error and the calendar doesn't get rendered anymore.

Fusseldieb avatar Dec 20 '21 08:12 Fusseldieb

@Fusseldieb so if I understand correctly, you want to render calendar only from 8 to 22. But there are events that are earlier or later than 08/22... Is that correct ?

altinselimi avatar Jan 11 '22 08:01 altinselimi

@Fusseldieb so if I understand correctly, you want to render calendar only from 8 to 22. But there are events that are earlier or later than 08/22... Is that correct ?

If the time is earlier than 8 or later than 22, it breaks.

Fusseldieb avatar Jan 27 '22 17:01 Fusseldieb

You should be able to reproduce this in a codepen or something so I could give this a proper analysis @Fusseldieb

altinselimi avatar Jan 28 '22 21:01 altinselimi