-
-
Notifications
You must be signed in to change notification settings - Fork 447
Closed
Description
Describe the issue
Seems that a recent commit introduced an exception when initializing an editor that's out of view due to display: none.
Commit in question: codemirror/view@4b6d0c9
Exception:
Uncaught TypeError: Cannot read properties of undefined (reading 'length')
at TextNode.lineInner (index.js:221:64)
at TextNode.line (index.js:23:21)
at HeightMapGap.blockAt (index.js:4184:36)
at HeightMapGap.lineAt (index.js:4189:25)
at HeightMapBranch.lineAt (index.js:4290:26)
at HeightMapBranch.lineAt (index.js:4290:26)
at HeightMapBranch.lineAt (index.js:4290:26)
at HeightMapBranch.lineAt (index.js:4290:26)
at HeightMapBranch.lineAt (index.js:4290:26)
at HeightMapBranch.lineAt (index.js:4290:26)
lineBlockAtHeight @ index.js:4921
measure @ index.js:6180
Specific debugging leads to a NaN here:

Browser and platform
Windows Chrome
Reproduction link
No response
Metadata
Metadata
Assignees
Labels
No labels
