From 8499991c41497408ede95d4da62bbea5966daeb0 Mon Sep 17 00:00:00 2001 From: AllenFang Date: Mon, 24 Sep 2018 15:24:07 +0800 Subject: [PATCH] fix cell edit broken --- packages/react-bootstrap-table2/src/row/simple-row.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/react-bootstrap-table2/src/row/simple-row.js b/packages/react-bootstrap-table2/src/row/simple-row.js index b33e2c6..02e4bbb 100644 --- a/packages/react-bootstrap-table2/src/row/simple-row.js +++ b/packages/react-bootstrap-table2/src/row/simple-row.js @@ -14,7 +14,9 @@ class Row extends shouldUpdater(eventDelegater(Component)) { } shouldComponentUpdate(nextProps) { - this.shouldUpdateRowContent = this.shouldUpdatedByNormalProps(nextProps); + this.shouldUpdateRowContent = false; + this.shouldUpdateRowContent = + this.shouldUpdateByWhenEditing(nextProps) || this.shouldUpdatedByNormalProps(nextProps); if (this.shouldUpdateRowContent) return true; return this.shouldUpdatedBySelfProps(nextProps);