Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

Commit

Permalink
Interpolate value prop as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
gdotdesign committed Apr 6, 2019
1 parent a822131 commit dcb359f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/CodeMirror.mint
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ component CodeMirror {
`
(() => {
if (this.editor) {
if (this.props.value != null) {
if (this.editor.getValue() !== this.props.value) {
this.editor.setValue(this.props.value);
if (#{value} != null) {
if (this.editor.getValue() !== #{value}) {
this.editor.setValue(#{value});
}
}
}
Expand Down

0 comments on commit dcb359f

Please sign in to comment.