0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 22:52:40 +00:00

Merge pull request #3699 from Gazook89/Focus-Editor-After-Switch

Set Focus on Editor after Tab Switches
This commit is contained in:
Víctor Losada Hernández
2024-09-03 22:37:01 +02:00
committed by GitHub

View File

@@ -113,7 +113,10 @@ const Editor = createClass({
this.props.setMoveArrows(newView === 'text');
this.setState({
view : newView
}, this.updateEditorSize); //TODO: not sure if updateeditorsize needed
}, ()=>{
this.codeEditor.current?.codeMirror.focus();
this.updateEditorSize();
}); //TODO: not sure if updateeditorsize needed
},
getCurrentPage : function(){