What is exactly happening here actually? The EventListener loses reference to the class function .. inside a constructor. (I fixed it already - https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/Function/bind) Is it because the constructor, while executing synchronous the code .. THISTHIS refers in the time to the "shadow" class and loses it after constructor, cuz the instance of this class is now owned by a variable?
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
R
Reactiflux
The largest chat community for React professionals