Skip to content

Commit 5fbae9d

Browse files
committed
2 parents 89a8b85 + 6f0b5fb commit 5fbae9d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/BootstrapTable.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,14 @@ class BootstrapTable extends Component {
240240
});
241241
}
242242

243+
// If setting the expanded rows is being handled externally
244+
// then overwrite the current expanded rows.
245+
if (this.props.options.expanding !== options.expanding) {
246+
this.setState({
247+
expanding: options.expanding || []
248+
});
249+
}
250+
243251
if (selectRow && selectRow.selected) {
244252
// set default select rows to store.
245253
const copy = selectRow.selected.slice();

0 commit comments

Comments
 (0)