We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EUI: 6.10.7
Simultaneously changing the sort and the columns results in error: Cannot read property 'sortable' of undefined
Cannot read property 'sortable' of undefined
To reproduce:
class App extends React.Component { store = [ { 'firstName': 'Shay', 'lastName': 'Banon' } ] columns = [{ field: 'firstName', name: 'First Name', sortable: true, truncateText: true, }]; sorting = { sort: { field: 'firstName', direction: 'desc', } }; handleClick = (e) => { this.columns = [{ field: 'lastName', name: 'Last Name', truncateText: true, } ] this.sorting = { sort: { field: 'lastName', direction: 'desc', } }; this.setState({}) } render() { return ( <EuiPage> <EuiPageBody> <EuiPageContent verticalPosition="center" horizontalPosition="center"> <EuiPageContentHeader> <EuiPageContentHeaderSection> <EuiTitle> <a href="/#" onClick={this.handleClick}> Click me </a> </EuiTitle> </EuiPageContentHeaderSection> </EuiPageContentHeader> <EuiPageContentBody> <EuiInMemoryTable items={this.store} columns={this.columns} pagination={true} sorting={this.sorting} /> </EuiPageContentBody> </EuiPageContent> </EuiPageBody> </EuiPage> )}; }
The text was updated successfully, but these errors were encountered:
There's two ways to trigger this:
this.sorting
Sorry, something went wrong.
sorting
EuiInMemoryTable
Successfully merging a pull request may close this issue.
EUI: 6.10.7
Simultaneously changing the sort and the columns results in error:
Cannot read property 'sortable' of undefined
To reproduce:
The text was updated successfully, but these errors were encountered: