Bug 1471893 - Write to a new property if the one we're trying is disabled
MozReview-Commit-ID: B306en6o2M0
--- a/devtools/client/inspector/fonts/fonts.js
+++ b/devtools/client/inspector/fonts/fonts.js
@@ -429,17 +429,17 @@ class FontInspector {
* @return {TextProperty|null}
*/
getTextProperty(name, value) {
if (!this.selectedRule) {
return null;
}
let textProperty =
- this.selectedRule.textProps.find(prop => prop.name === name);
+ this.selectedRule.textProps.find(prop => prop.name === name && prop.enabled);
if (!textProperty) {
textProperty = this.selectedRule.editor.addProperty(name, value, "", true);
}
return textProperty;
}
/**