Skip to content

Commit

Permalink
WYSIWYG Editor doesn't refresh for dependsOn
Browse files Browse the repository at this point in the history
Fixes #3551
  • Loading branch information
AurelioDeRosa committed Dec 19, 2016
1 parent 72987a5 commit 05e6b7a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fields/types/html/HtmlField.js
Expand Up @@ -54,7 +54,9 @@ module.exports = Field.create({

this._currentValue = this.props.value;
tinymce.init(opts);
this.setState({ wysiwygActive: true });
if (evalDependsOn(this.props.dependsOn, this.props.values)) {
this.setState({ wysiwygActive: true });
}
},

removeWysiwyg (state) {
Expand Down

0 comments on commit 05e6b7a

Please sign in to comment.