Skip to content
Snippets Groups Projects
Commit 09db6ff3 authored by chris's avatar chris
Browse files

set timeout so notes don't grab focus

parent 8d69f59f
No related branches found
No related tags found
1 merge request!177Fixes
......@@ -52,7 +52,10 @@ export default props => {
'main',
);
if (debug) applyDevTools(view);
if (autoFocus) view.focus();
if (autoFocus)
setTimeout(() => {
view.focus();
});
return () => view.destroy();
}
......@@ -61,7 +64,6 @@ export default props => {
const dispatchTransaction = transaction => {
const { TrackChange } = props;
const tr =
TrackChange && TrackChange.enabled
? trackedTransaction(transaction, view.state, user)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment