mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-01-09 14:30:12 -06: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