Commit de1abff
Grant Ammons
Only update simplemde value if the value has changed
Fixes an issue where react renders because of a change that doesn't involve simpleMDE, and the cursor in simpleMDE would go to the top. Traced it down to this, we should only be setting the `simplemde.value` if the next value does not equal the current value.1 parent abb3fd3 commit de1abff
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
0 commit comments