mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-03 05:57:47 +08:00
fix(ribbon): exception about focusing
This commit is contained in:
parent
b4ea96b7c7
commit
fd029ac451
@ -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?.();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user