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

Copy/paste record order #3163

Closed
2 tasks done
jaginn opened this issue Nov 11, 2021 · 2 comments
Closed
2 tasks done

Copy/paste record order #3163

jaginn opened this issue Nov 11, 2021 · 2 comments
Labels
bug 🐛 Something doesn't work component: data grid This is the name of the generic UI component, not the React module!

Comments

@jaginn
Copy link

jaginn commented Nov 11, 2021

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Current behavior 😯

When grid records are selected and copied to the clipboard (Ctrl+C), the order in which they are copied is the order in which they were selected, rather than the order in which they appear in the grid.

Expected behavior 🤔

When copying records to the clipboard (Ctrl+C) they should be copied in the order they appear in the grid.

Steps to reproduce 🕹

Steps:

  1. Select records individually in an order different to what is displayed in the grid
  2. Copy the records to the clipboard (Ctrl+C)
  3. Paste the records into a text editor (Ctrl+V)

Context 🔦

We allow users of the application to sort grid data in the order that is important to them. Copying records in a different order defeats the purpose of customising the grid sort order.

Your environment 🌎

`npx @mui/envinfo`
  System:
    OS: macOS 11.6
  Binaries:
    Node: 14.17.6 - ~/.nvm/versions/node/v14.17.6/bin/node
    Yarn: Not Found
    npm: 6.14.15 - ~/.nvm/versions/node/v14.17.6/bin/npm
  Browsers:
    Chrome: 95.0.4638.69
    Edge: Not Found
    Firefox: Not Found
    Safari: 15.0
  npmPackages:
    @emotion/react: ^11.4.1 => 11.4.1 
    @emotion/styled: ^11.3.0 => 11.3.0 
    @mui/core:  5.0.0-alpha.49 
    @mui/icons-material: ^5.0.1 => 5.0.1 
    @mui/lab: ^5.0.0-alpha.50 => 5.0.0-alpha.50 
    @mui/material: ^5.0.2 => 5.0.2 
    @mui/private-theming:  5.0.1 
    @mui/styled-engine:  5.0.1 
    @mui/styles: ^5.0.1 => 5.0.1 
    @mui/system:  5.0.2 
    @mui/types:  7.0.0 
    @mui/utils:  5.0.1 
    @mui/x-data-grid-pro: ^5.0.0-beta.4 => 5.0.0-beta.4 
    @mui/x-license-pro:  5.0.0-beta.4 
    @types/react: ^16.14.15 => 16.14.15 
    react: ^17.0.2 => 17.0.2 
    react-dom: ^17.0.2 => 17.0.2 
    typescript: ^4.1.6 => 4.1.6 

Order ID 💳 (optional)

31318

@jaginn jaginn added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Nov 11, 2021
@oliviertassinari oliviertassinari added status: waiting for author Issue with insufficient information and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Nov 12, 2021
@oliviertassinari
Copy link
Member

Please provide a minimal reproduction test case with the latest version. This would help a lot 👷 .
A live example would be perfect. This codesandbox.io template may be a good starting point. Thank you!

@oliviertassinari oliviertassinari added the component: data grid This is the name of the generic UI component, not the React module! label Nov 12, 2021
@flaviendelangle
Copy link
Member

flaviendelangle commented Nov 12, 2021

You are using the 5.0.0-beta.4 and it should be fixed in 5.0.0-beta.5 👍, fixed in #2941

@oliviertassinari oliviertassinari added bug 🐛 Something doesn't work and removed status: waiting for author Issue with insufficient information labels Jan 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: data grid This is the name of the generic UI component, not the React module!
Projects
None yet
Development

No branches or pull requests

3 participants