Permalink
Browse files

WYSIWYG Editor doesn't refresh for dependsOn

Fixes #3551
  • Loading branch information...
1 parent 72987a5 commit 05e6b7aa4b1e9c2490f6dfebf4fb75a06d5655ad @AurelioDeRosa AurelioDeRosa committed on GitHub Dec 19, 2016
Showing with 3 additions and 1 deletion.
  1. +3 −1 fields/types/html/HtmlField.js
@@ -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) {

0 comments on commit 05e6b7a

Please sign in to comment.