0
0
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:
Víctor Losada Hernández
2026-04-13 17:36:47 +02:00
parent de9df7d257
commit 6c51e6b711
@@ -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(()=>{