SilverBullet pivot to become an offline-first PWA (#403)
This commit is contained in:
@@ -253,6 +253,12 @@ export function MiniEditor(
|
||||
// Reset the state
|
||||
view.setState(buildEditorState());
|
||||
});
|
||||
} else if (focus) {
|
||||
// console.log("BLURRING WHILE KEEPING FOCUSE");
|
||||
// Automatically refocus blurred
|
||||
if (editorViewRef.current) {
|
||||
editorViewRef.current.focus();
|
||||
}
|
||||
}
|
||||
// Event may occur again in 500ms
|
||||
setTimeout(() => {
|
||||
|
||||
Reference in New Issue
Block a user