Bug 1343455 - Toggling checkbox for CSS rule in editor shouldn't expand collapsed computed rules. r?gl
MozReview-Commit-ID: GRa15joVxpH
--- a/devtools/client/inspector/rules/rules.js
+++ b/devtools/client/inspector/rules/rules.js
@@ -1217,17 +1217,18 @@ CssRuleView.prototype = {
*/
_highlightProperty: function (editor) {
let isPropertyHighlighted = this._highlightRuleProperty(editor);
let isComputedHighlighted = this._highlightComputedProperty(editor);
// Expand the computed list if a computed property is highlighted and the
// property rule is not highlighted
if (!isPropertyHighlighted && isComputedHighlighted &&
- !editor.computed.hasAttribute("user-open")) {
+ !editor.computed.hasAttribute("user-open") &&
+ editor.expander.hasAttribute("open")) {
editor.expandForFilter();
}
return isPropertyHighlighted || isComputedHighlighted;
},
/**
* Called when TextPropertyEditor is updated and updates the rule property