Skip to content
Merged
Changes from 2 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
16 changes: 13 additions & 3 deletions packages/grid/src/Grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2167,15 +2167,25 @@ class Grid extends PureComponent<GridProps, GridState> {
}
: { opacity: 0 };

const modelColumn = this.getModelColumn(column);
const modelRow = this.getModelRow(row);
let modelColumn;
let modelRow;
try {
modelColumn = this.getModelColumn(column);
modelRow = this.getModelRow(row);
} catch (e) {
// eslint-disable-next-line no-console
Comment thread
AkshatJawne marked this conversation as resolved.
Outdated
return null;
}
const inputStyle: CSSProperties | undefined =
modelColumn != null && modelRow != null
? {
textAlign: model.textAlignForCell(modelColumn, modelRow),
}
: undefined;
const isValid = model.isValidForCell(modelColumn, modelRow, value);
const isValid =
modelColumn != null && modelRow != null
? model.isValidForCell(modelColumn, modelRow, value)
: false;

return (
<div style={wrapperStyle}>
Expand Down