fix(ribbon): exception about focusing

This commit is contained in:
Elian Doran 2025-03-15 01:40:46 +02:00
parent b4ea96b7c7
commit fd029ac451
No known key found for this signature in database

View File

@ -201,10 +201,10 @@ export default class RibbonContainer extends NoteContextAwareWidget {
if (refreshActiveTab) { if (refreshActiveTab) {
if (handleEventPromise) { if (handleEventPromise) {
handleEventPromise.then(() => (activeChild as any).focus()); // TODO: Base class handleEventPromise.then(() => (activeChild as any).focus?.()); // TODO: Base class
} else { } else {
// TODO: Base class // TODO: Base class
(activeChild as any)?.focus(); (activeChild as any).focus?.();
} }
} }
} }