mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2026-06-30 22:20:09 +00:00
fix #979
This commit is contained in:
@@ -37,10 +37,10 @@ export default class RowAggregator extends shouldUpdater(eventDelegater(React.Co
|
||||
this.props.selectable !== nextProps.selectable ||
|
||||
this.shouldUpdatedBySelfProps(nextProps)
|
||||
) {
|
||||
this.shouldUpdateRowContent = this.shouldUpdateChild(nextProps);
|
||||
this.shouldUpdateRowContent = this.shouldRowContentUpdate(nextProps);
|
||||
return true;
|
||||
}
|
||||
this.shouldUpdateRowContent = this.shouldUpdateChild(nextProps);
|
||||
this.shouldUpdateRowContent = this.shouldRowContentUpdate(nextProps);
|
||||
|
||||
return this.shouldUpdateRowContent;
|
||||
}
|
||||
|
||||
@@ -48,4 +48,9 @@ export default ExtendBase =>
|
||||
return this.shouldUpdateByCellEditing(nextProps) ||
|
||||
this.shouldUpdatedByNormalProps(nextProps);
|
||||
}
|
||||
|
||||
shouldRowContentUpdate(nextProps) {
|
||||
return this.shouldUpdateChild(nextProps) ||
|
||||
this.shouldUpdateByColumnsForSimpleCheck(nextProps);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -15,8 +15,7 @@ class SimpleRow extends shouldUpdater(eventDelegater(Component)) {
|
||||
|
||||
shouldComponentUpdate(nextProps) {
|
||||
this.shouldUpdateRowContent = false;
|
||||
this.shouldUpdateRowContent =
|
||||
this.shouldUpdateChild(nextProps) || this.shouldUpdateByColumnsForSimpleCheck(nextProps);
|
||||
this.shouldUpdateRowContent = this.shouldRowContentUpdate(nextProps);
|
||||
if (this.shouldUpdateRowContent) return true;
|
||||
|
||||
return this.shouldUpdatedBySelfProps(nextProps);
|
||||
|
||||
Reference in New Issue
Block a user