this in undefined in the addEvent example
Asked by Olivier Rossel
4 years ago.
4 years ago.
Hello I get a message from my IntelliJ when I try to use the code for the ref attribute and the onTimeRangeSelected attribute. The this in these codes might be uninitialized. And it indeed is undefined at runtime.
Is it something related to using Typescript? or using the DayPilotScheduler inside an fonction-based component and not a class-based component?
Any help is welcome.
DayPilot