-
Notifications
You must be signed in to change notification settings - Fork 193
Description
Refs rjsf-team/react-jsonschema-form#851
We are using an UnControlled
component with autoCursor={false}
because this seems the most similar to the v2.X behavior. Without autoCursor={false}
, every edit causes the cursor to jump to the end of the document (probably because we're resetting the value
on every render). With autoCursor={false}
in v3.0.7, the cursor behaves normally (for instance, advancing as the user types). However, in v4.0.0, even with autoCursor={false}
, the cursor jumps to the end of the document at the end of every edit, as previously. As far as I can tell, autoCursor
is essentially useless now (although I am not an expert in CodeMirror or even React so maybe I'm missing something).
I believe the change happened in 934521a#diff-168726dbe96b3ce427e7fedce31bb0bcL521.
Do you have advice on how best for us to upgrade to v4?