Skip to content

[Grid][Bug] Updating selection state prevents edit mode #3198

@vveesseelliinnaa

Description

@vveesseelliinnaa

Description

Updating selection state prevents entering in Edit mode in the selected dataItem.

Plan

KendoReact Free

Steps To Reproduce

  1. Go to https://stackblitz.com/edit/vitejs-vite-zfsrvaet?file=src%2FNewGrid.tsx
  2. Click a row of the Grid to select it
  3. Double click a row to edit it
    Result - the Grid does not enter in edit mode

Screenshots or video

No response

Actual Behavior

The Grid does not enter edit mode unless you comment the onSelectionChange logic

        onSelectionChange={(event) => {
          const newSelectedState = event.select;
          //setNewSelection(newSelectedState);
        }}

Expected Behavior

The Grid should be able to enter in edit mode even if the selection is enabled as can be seen in the old Grid API here:
https://stackblitz.com/edit/vitejs-vite-aajvsd85?file=src%2FNewGrid.tsx

Browser

Chrome

Browser version

latest

OS type

MacOS

OS version

No response

Last working version of the KendoReact package (if regression).

10.2

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions