Skip to content

Commit

Permalink
Fix #3783: Datatable error editing cells quickly (#3785)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Dec 14, 2022
1 parent 0ead56a commit a720a7c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/lib/datatable/BodyCell.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,11 @@ export const BodyCell = React.memo((props) => {
setEditingRowDataState(editingRowData);

// update editing meta for complete methods on row mode
props.editingMeta[editingKey].data[field] = val;
const currentData = getEditingRowData();

if (currentData) {
currentData[field] = val;
}
};

const onClick = (event) => {
Expand Down

0 comments on commit a720a7c

Please sign in to comment.