diff options
Diffstat (limited to 'js/panels/properties')
-rw-r--r-- | js/panels/properties/content.reel/content.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/js/panels/properties/content.reel/content.js b/js/panels/properties/content.reel/content.js index fe6faef8..3cedee6d 100644 --- a/js/panels/properties/content.reel/content.js +++ b/js/panels/properties/content.reel/content.js | |||
@@ -182,8 +182,11 @@ exports.Content = Montage.create(Component, { | |||
182 | 182 | ||
183 | if(control.prop !== "border-color" && control.prop !== "background-color") { | 183 | if(control.prop !== "border-color" && control.prop !== "background-color") { |
184 | var currentValue = ElementsMediator.getProperty(el, control.prop, control.valueMutator); | 184 | var currentValue = ElementsMediator.getProperty(el, control.prop, control.valueMutator); |
185 | currentValue ? currentValue = currentValue : currentValue = control.defaultValue; | 185 | if(currentValue === null) |
186 | this.customSections[0].content.controls[control.id] = currentValue; | 186 | { |
187 | currentValue = control.defaultValue; | ||
188 | } | ||
189 | this.customSections[i].content.controls[control.id] = currentValue; | ||
187 | } | 190 | } |
188 | } | 191 | } |
189 | } | 192 | } |