Skip to content
Snippets Groups Projects
Commit 32426d7b authored by chris's avatar chris
Browse files

fix view focus

parent 517370ae
No related branches found
No related tags found
1 merge request!430Hhmi issues
...@@ -105,7 +105,7 @@ const WaxView = forwardRef((props, ref) => { ...@@ -105,7 +105,7 @@ const WaxView = forwardRef((props, ref) => {
if (autoFocus && view) { if (autoFocus && view) {
view.focus(); view.focus();
view.state.tr.insertText('', 0); view.state.tr.insertText('', 0);
view.dispatch(view.state.tr); view.dispatch(view.state.tr.scrollIntoView());
} }
}, 500); }, 500);
......
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