Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions components/data-table/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,13 @@ class DataTable extends React.Component {
return [];
}

getSnapshotBeforeUpdate(prevProps) {
if (prevProps.items !== this.props.items) {
this.interactiveElements = {};
}
return null;
}

getId() {
return this.props.id || this.generatedId;
}
Expand Down Expand Up @@ -690,13 +697,6 @@ class DataTable extends React.Component {
}
};

// eslint-disable-next-line camelcase
UNSAFE_componentWillUpdate(nextProps) {
if (this.props.items !== nextProps.items) {
this.interactiveElements = {};
}
}

isResizable() {
return this.props.fixedLayout && this.props.resizable;
}
Expand Down