diff --git a/djx/src/main/ts/tsx/DjxWidgetBase.ts b/djx/src/main/ts/tsx/DjxWidgetBase.ts --- a/djx/src/main/ts/tsx/DjxWidgetBase.ts +++ b/djx/src/main/ts/tsx/DjxWidgetBase.ts @@ -62,7 +62,7 @@ export abstract class DjxWidgetBase { const handler = this[handlerMethod as keyof this]; if (typeof handler === "function") - this.on(eventName, handler); + this.on(eventName, handler.bind(this)); }); }