mirror of
https://github.com/zadam/trilium.git
synced 2026-05-06 18:17:42 +02:00
fix(ribbon): exception about focusing
This commit is contained in:
@@ -201,10 +201,10 @@ export default class RibbonContainer extends NoteContextAwareWidget {
|
||||
|
||||
if (refreshActiveTab) {
|
||||
if (handleEventPromise) {
|
||||
handleEventPromise.then(() => (activeChild as any).focus()); // TODO: Base class
|
||||
handleEventPromise.then(() => (activeChild as any).focus?.()); // TODO: Base class
|
||||
} else {
|
||||
// TODO: Base class
|
||||
(activeChild as any)?.focus();
|
||||
(activeChild as any).focus?.();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user