mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-25 18:20:09 +02:00
Wrap view.dispatch in setTimeout (#21365)
GitOrigin-RevId: 61c19e10f9529b4d7913f01c57281931533153d2
This commit is contained in:
@@ -232,7 +232,9 @@ function useCodeMirrorScope(view: EditorView) {
|
||||
spellCheckLanguage,
|
||||
hunspellManager,
|
||||
}
|
||||
view.dispatch(setSpellCheckLanguage(spellingRef.current))
|
||||
window.setTimeout(() => {
|
||||
view.dispatch(setSpellCheckLanguage(spellingRef.current))
|
||||
})
|
||||
}, [view, spellCheckLanguage, hunspellManager])
|
||||
|
||||
const projectFeaturesRef = useRef(projectFeatures)
|
||||
|
||||
Reference in New Issue
Block a user