Skip to content

fix: wait for CodeMirror view before placeholder setup - #1210

Open
dajiaohuang wants to merge 1 commit into
bytedance:mainfrom
dajiaohuang:fix/1130-codemirror-initial-measurement
Open

dajiaohuang wants to merge 1 commit into
bytedance:mainfrom
dajiaohuang:fix/1130-codemirror-initial-measurement

Conversation

@dajiaohuang

Copy link
Copy Markdown

Fixes #1130. The active-line placeholder can measure the editor before CodeMirror has a valid view, producing No tile at position -1. Mount the placeholder after didMount exposes $view, in both code and prompt editors, and guard controlled value updates until the editor API and view are available.\n\nValidation: Rush build for @flowgram.ai/form-materials passed on Node 22.23.3; git diff --check passed.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]

1 participant