Skip to content

[data grid] preProcessEditCellProps triggered after onKeyDown event for fields which are not currently editable #17298

@atsoy

Description

@atsoy

Steps to reproduce

Steps:

  1. Open this link to live example
  2. Select one of the editable cells (column: Firstname)
  3. Start editing by pressing e.g "k"

Current behavior

By starting editing with the key board application crashes with the message params.props is undefined.

Expected behavior

It should not crash, but continue editing the cell, without starting validation for currently not editable fields.

Context

No response

Your environment

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: preProcessEditCellProps, editable, onKeyDown, editMode

Order ID: 62555

Metadata

Metadata

Assignees

Labels

customization: logicLogic customizability.feature: EditingRelated to the data grid Editing featurescope: data gridChanges related to the data grid.support: pro standardSupport request from a Pro standard plan user. https://mui.com/legal/technical-support-sla.type: bugIt doesn't behave as expected.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions