Skip to content
New issue

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

ROU-11034: Fixed error in console when clicking a cell on autogenerated Grids #432

Merged
merged 1 commit into from
Aug 27, 2024
Merged
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
2 changes: 1 addition & 1 deletion src/Providers/DataGrid/Wijmo/Features/ClickEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ namespace Providers.DataGrid.Wijmo.Feature {
const rowNumber = ht.row;
const binding = column.binding;
const uniqueId = column.describedById || binding; // if describedById is undefined (in the case of autogenerated columns), then use the binding
const columnWidgetId = this._grid.getColumn(uniqueId).widgetId;
const columnWidgetId = this._grid.getColumn(uniqueId)?.widgetId || binding; // if no column exists (in the case of autogenerated columns using JSONSerialize), then use the binding
const line = _.cloneDeep(this._grid.provider.rows[rowNumber].dataItem);
this._grid.rowMetadata.clear(line);

Expand Down
Loading