chore(react): proper legacy widget injection & event handling

This commit is contained in:
Elian Doran
2025-08-22 23:33:02 +03:00
parent 4bd25a0d4a
commit df3aa04787
2 changed files with 27 additions and 12 deletions

View File

@@ -302,6 +302,8 @@ export class ReactWrappedWidget extends BasicWidget {
for (const listener of this.listeners[name]) {
listener(data);
}
super.handleEvent(name, data);
}
registerHandler<T extends EventNames>(name: T, handler: EventHandler) {