Skip to content
Snippets Groups Projects
Commit 511f1610 authored by Paul Kaplan's avatar Paul Kaplan
Browse files

Focus on the last input when opening custom block modal

parent a81ad8d4
Branches
Tags
Loading
......@@ -65,8 +65,11 @@ class CustomProcedures extends React.Component {
this.mutationRoot.domToMutation(this.props.mutator);
this.mutationRoot.initSvg();
this.mutationRoot.render();
this.setState({warp: this.mutationRoot.getWarp()});
// Allow the initial events to run to position this block, then focus.
setTimeout(() => {
this.mutationRoot.focusLastEditor_();
});
}
handleCancel () {
this.props.onRequestClose();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment