mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-05-07 18:48:39 +00:00
fix focus on tab change
This commit is contained in:
@@ -300,6 +300,7 @@ const CodeEditor = forwardRef(
|
|||||||
view.setState(nextState);
|
view.setState(nextState);
|
||||||
prevTabRef.current = tab;
|
prevTabRef.current = tab;
|
||||||
}
|
}
|
||||||
|
view.focus();
|
||||||
}, [tab]);
|
}, [tab]);
|
||||||
|
|
||||||
useEffect(()=>{
|
useEffect(()=>{
|
||||||
|
|||||||
Reference in New Issue
Block a user