Skip to content

Commit

Permalink
fix(code-mirror): refresh the style when the value changes
Browse files Browse the repository at this point in the history
  • Loading branch information
colinin committed Apr 18, 2023
1 parent 6e468b8 commit be98e47
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
const oldValue = editor?.getValue();
if (value !== oldValue) {
editor?.setValue(value ? value : '');
setTimeout(refresh, 50);
}
},
{ flush: 'post' },
Expand Down

0 comments on commit be98e47

Please sign in to comment.