I was not able to reproduce this issue...
Here is a dojo with your code, but thisView.schedulerLayout(this) and thisView.readSchedules(this) were commented out, as I do not know what thisView is, or how schedulerLayout and readSchedules is working...
And when clicking on the scheduler, nothing happens, no error, nothing.
If you are able to modify that dojo to reproduce your issue, that would be helpful.