Comments (3)
The UX seems better for fully highlighted text, I'd be in favor of restoring that behavior.
from mui-x.
This is actually different than the normal input behavior where an input that has text in it will select all of the text on focus. At first I thought this is a requirement for accessibility by WCAG standard, but it actually is not. From the WCAG docs:
- When text fields receive focus, a vertical bar is displayed in the field, indicating that the user can insert text, OR all of the text is highlighted, indicating that the user can type over the text.
- When a user interface control receives focus, a visible border is displayed around it.
In our case we support this standard by the second option already, so from a accessibility standpoint there is no need for action.
From a UX perspective this is a bit different and, IMO, highly opinionated. I myself do not like it when the text is selected in full when receiving focus.
If you still want to go back to the previous behaviour you could do this in 2 ways:
- Create your own custom edit component, where you have full control over the focus and all related events
- listen on the editing events,
rowEditStart
/cellEditStart
. From there you can grab the input and select all text.
Option 2 is honestly a bit harder to accomplish.
Keep in mind that you are responsible for the tab-sequence when you provide custom components in the renderEditCell
method. For reference: Tab sequence
Anything to add @MBilalShafi @romgrk ?
from mui-x.
In that case I will add this to the board
from mui-x.
Related Issues (20)
- [charts] `onMarkClick` not working HOT 5
- [question] Can you help me adding code for the ticket https://github.com/mui/mui-x/issues/13298 HOT 2
- [data grid] Shift + Arrow Keys Not Selecting Correct Rows After Independent Row Selection HOT 2
- [charts][docs] The AxisConfig API page is wrong
- [data grid] re-rendering / resetting filter on state change HOT 9
- [data grid] How to get the total row count including children rows HOT 5
- Page row count to be set on child rows when row grouping is applied
- & .MuiDataGrid-columnHeaders is not working with @mui/x-data-grid-pro": ^7.1.1 HOT 1
- [charts] How to add min and max scaling on axis for bar charts to remove decimal scale values HOT 3
- [data grid] changing data is slow HOT 2
- [question] How can i remove column sorting from datagridView ? (^6.19.6)
- MUI Datagrid sortComparator function signature is not available when using typescript
- [data grid] Row spanning with tree/grouping behavior HOT 1
- [charts] Pie chart overflow with legend HOT 5
- [data grid]: there is an issue with the design on the right side when dragging
- [data grid] When used Styled Datagrid, processRowUpdate does not fired.
- [charts] types not exported from ChartsTooltipTable HOT 7
- Leap year data grid date column filter cant be filled from left to right HOT 3
- [charts] Improve docs about how to pick the correct scaleType HOT 7
- [charts] Tooltips for points on the edge of the chart are not always shown with tooltip trigger item HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mui-x.