Skip to content

DataGrid: Starting onKeyDown editing triggers preProcessEditCellProps for fields, which are not currently editable (editMode="row"} #17298

Open
@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

No one assigned

    Labels

    bug 🐛Something doesn't workcomponent: data gridThis is the name of the generic UI component, not the React module!customization: logicLogic customizabilityfeature: EditingRelated to the data grid Editing featuresupport: pro standardSupport request from a Pro standard plan user. https://mui.com/legal/technical-support-sla/

    Projects

    Status

    🆕 Needs refinement

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions