As I said in my previous comment, this is not the problem, because I always use that function inside custom events, there has to be something wrong somewhere else.
Do you have the possibility to share the project? (Or at least this part)
As I said in my previous comment, this is not the problem, because I always use that function inside custom events, there has to be something wrong somewhere else.
Do you have the possibility to share the project? (Or at least this part)