Skip to content

Commit faeef5b

Browse files
committed
Document preserveScrollPosition
1 parent f37e20f commit faeef5b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ You can interact with the CodeMirror instance using a `ref` and the `getCodeMirr
6969

7070
* `autoSave` `Boolean` automatically persist changes to underlying textarea (default false)
7171
* `value` `String` the editor value
72+
* `preserveScrollPosition` `Boolean=false` Preserve previous scroll position after updating value
7273
* `options` `Object (newValue)` options passed to the CodeMirror instance
7374
* `onChange` `Function (newValue)` called when a change is made
7475
* `onFocusChange` `Function (focused)` called when the editor is focused or loses focus

0 commit comments

Comments
 (0)