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

[DataGrid] fieldToFocus option of startRowEditMode method doesn't work #8834

Closed
2 tasks done
cherniavskii opened this issue May 2, 2023 · 1 comment · Fixed by #6489
Closed
2 tasks done

[DataGrid] fieldToFocus option of startRowEditMode method doesn't work #8834

cherniavskii opened this issue May 2, 2023 · 1 comment · Fixed by #6489
Labels
bug 🐛 Something doesn't work component: data grid This is the name of the generic UI component, not the React module! feature: Editing Related to the data grid Editing feature

Comments

@cherniavskii
Copy link
Member

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Steps to reproduce 🕹

Link to live example: https://codesandbox.io/s/priceless-breeze-xxwmep?file=/demo.tsx

Steps:

  1. Click "Add record"

Current behavior 😯

The row exits the editing mode immediately after it's rendered.

Expected behavior 🤔

The row should state in editing mode and the name cell should be focused.

Context 🔦

This was originally reported by @siriwatknp

Your environment 🌎

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

Order ID or Support key 💳 (optional)

No response

@cherniavskii cherniavskii added status: waiting for maintainer These issues haven't been looked at yet by a maintainer bug 🐛 Something doesn't work component: data grid This is the name of the generic UI component, not the React module! feature: Editing Related to the data grid Editing feature and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels May 2, 2023
@cherniavskii
Copy link
Member Author

cherniavskii commented May 2, 2023

This issue is essentially the same issue as #6002

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! feature: Editing Related to the data grid Editing feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant