mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 13:13:45 +01:00
Wrap range building in setTimeout (#22796)
GitOrigin-RevId: a0841e6eb9f2f637653dd0b8a37a61136097cc4f
This commit is contained in:
@@ -98,7 +98,9 @@ export const RangesProvider: FC = ({ children }) => {
|
||||
useEffect(() => {
|
||||
if (currentDoc) {
|
||||
const listener = () => {
|
||||
setRanges(buildRanges(currentDoc))
|
||||
window.setTimeout(() => {
|
||||
setRanges(buildRanges(currentDoc))
|
||||
})
|
||||
}
|
||||
|
||||
// currentDoc.on('ranges:clear.cm6', listener)
|
||||
|
||||
Reference in New Issue
Block a user