fix(ribbon): exception about focusing

pull/1432/head
Elian Doran 2025-03-15 01:40:46 +07:00
parent b4ea96b7c7
commit fd029ac451
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

@ -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?.();
}
}
}