mirror of
https://github.com/zadam/trilium.git
synced 2026-05-06 14:35:30 +02:00
chore(react): proper legacy widget injection & event handling
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user