Bug 1352777 - Fix dropmarkers in JSON viewer not collapsing long string r?rickychien
MozReview-Commit-ID: BdixqPyi8x4
--- a/devtools/client/shared/components/tree/tree-cell.js
+++ b/devtools/client/shared/components/tree/tree-cell.js
@@ -37,17 +37,18 @@ define(function (require, exports, modul
},
/**
* Optimize cell rendering. Rerender cell content only if
* the value or expanded state changes.
*/
shouldComponentUpdate: function (nextProps, nextState) {
return (this.props.value != nextProps.value) ||
- (this.state !== nextState);
+ (this.state !== nextState) ||
+ (this.props.member.open != nextProps.member.open);
},
getCellClass: function (object, id) {
let decorator = this.props.decorator;
if (!decorator || !decorator.getCellClass) {
return [];
}