Skip to content

Commit

Permalink
EuiInMemoryTable: maintain sort values through external item updates (#…
Browse files Browse the repository at this point in the history
…2035)

* maintain sort values through external item updates

* CL; better JS
  • Loading branch information
thompsongl authored Jun 12, 2019
1 parent 4c4aa50 commit f0c4cf4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
**Bug fixes**

- Fixed `EuiCallOut` header icon alignment ([#2006](https://github.com/elastic/eui/pull/2006))
- Fixed `EuiInMemoryTable` sort value persistence through lifecycle updates ([#2035](https://github.com/elastic/eui/pull/2035))

**Breaking changes**

Expand Down
1 change: 1 addition & 0 deletions src/components/basic_table/in_memory_table.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ export class EuiInMemoryTable extends Component {
// We have new items because an external search has completed, so reset pagination state.
return {
prevProps: {
...prevState.prevProps,
items: nextProps.items,
},
pageIndex: 0,
Expand Down

0 comments on commit f0c4cf4

Please sign in to comment.