mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-03-29 20:48:10 +00:00
change highlight when changing tabs
This commit is contained in:
@@ -253,7 +253,7 @@ const CodeEditor = forwardRef(
|
||||
view.dispatch({
|
||||
effects : highlightCompartment.reconfigure([customHighlightPlugin, highlightExtension]),
|
||||
});
|
||||
}, [renderer]);
|
||||
}, [renderer, tab]);
|
||||
|
||||
useImperativeHandle(ref, ()=>({
|
||||
getValue : ()=>viewRef.current.state.doc.toString(),
|
||||
|
||||
Reference in New Issue
Block a user