Comments (3)
I'm also open to work arounds if there are any. I tried a handful of things with no success.
from material-ui.
@TonyBrobston, I didn't understand your issue. Can you provide reproduction steps using an example from the Autocomplete docs or a live example on CodeSandbox or StackBlitz? What is the "current behavior" vs. the "expected behavior"?
The Autocomplete component already has an autoSelect
prop. Check it out in this playground: https://mui.com/material-ui/react-autocomplete/#playground.
API docs: https://mui.com/material-ui/api/autocomplete/#autocomplete-prop-autoSelect.
Does that work for you?
from material-ui.
@TonyBrobston, I didn't understand your issue. Can you provide reproduction steps using an example from the Autocomplete docs or a live example on CodeSandbox or StackBlitz? What is the "current behavior" vs. the "expected behavior"?
The Autocomplete component already has an
autoSelect
prop. Check it out in this playground: https://mui.com/material-ui/react-autocomplete/#playground.API docs: https://mui.com/material-ui/api/autocomplete/#autocomplete-prop-autoSelect.
Does that work for you?
Hey @ZeeshanTamboli
Here is a super rough example: https://codesandbox.io/p/sandbox/icy-violet-j2nf2f?file=%2Fsrc%2FDemo.tsx%3A36%2C19
When you click "Edit" for the Date, when the DatePicker is rendered, the value in the field is focused and selected. When you click "Edit" for the TextField, when the TextField is rendered, the TextField is focused, but the value is not selected.
The desire is to have the TextField have an option to function the same way, to also select the text as the user is going to overwrite the value.
Does this help?
from material-ui.
Related Issues (20)
- [docs] Change pnpm order, place second HOT 1
- Multilevel menu HOT 1
- [Select] Render options below Select's DOM position instead of in a portal HOT 2
- [RFC] Restructure icons exports HOT 2
- [SKELETON] [BUG] Skeleton Height is Unpredictable(Ghost Padding or Margin) Without `variant` Attribute HOT 1
- npm install @mui/styles ERROR HOT 2
- [joy-ui] Temperature check on the future of Joy UI
- [docs-infra] CodeSandbox/StackBlitz broken for demos with relative imports
- test #42499 HOT 1
- [docs] Add documentation for preventing SSR flicker/FOUC with the Next.js app router HOT 3
- Image Not rendering in document attachment
- sx prop not work HOT 1
- [v6] Module not found: DefaultPropsProvider/ InitColorSchemeScript HOT 6
- [joy-ui] When using styled('div') all its properties are lost
- bug: Preact example is throwing errors HOT 1
- [mui autocomplete] : label cut off when the option list is displayed above.
- @mui/material: incorrect responsiveFontSizes return type when using CssVarsTheme as input
- [RFC][Grid v2] Stabilize API HOT 2
- [docs][Grid v2] Restructure docs HOT 1
- & .MuiDataGrid-columnHeaders is not working with @mui/x-data-grid-pro": ^7.1.1
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 material-ui.