Skip to content

[data grid] onBeforeClipboardPasteStart and processRowUpdate are not working well with pinned rows #19291

@MT0609

Description

@MT0609

Steps to reproduce

Steps:

  1. Implement the controlling pinned rows (https://v7.mui.com/x/react-data-grid/row-pinning/#controlling-pinned-rows)
  2. Implement Clipboard paste with confirmation (https://v7.mui.com/x/react-data-grid/clipboard/#events)
  3. Try pasting content of a cell of unpinned row (or any text) into a cell of pinned row (and with or without confirmation popup), the pasting is not working well for pinned row. Try debugging in processRowUpdate function, the row params are not correct

Current behavior

The pinned row that is targeted to be pasted in is not pasted with content after confirmation finishes.

Expected behavior

The pasting should work properly for pinned row with pasting confirmation

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: pinned, clipboard, onBeforeClipboardPasteStart, processRowUpdate

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature: ClipboardRelated to clipboard copy or paste functionalitiesfeature: Row pinningRelated to the data grid Row pinning featurescope: data gridChanges related to the data grid.type: new featureExpand the scope of the product to solve a new problem.waiting for 👍Waiting for upvotes. Open for community feedback and needs more interest to be worked on.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions