Comments (2)
Essentially, the developer has to narrow or cast the type despite MUI being able to assert the correct type definition with the inputs of the useAutocomplete hook.
Can you show an example where you needed to narrow or cast the type? Your request makes sense to me. I don't think it would cause any issues or a breaking change. Want to give it a try by making a pull request?
from material-ui.
Want to give it a try by making a pull request?
@ZeeshanTamboli I'll give it a shot. Starting to look into this now 👍🏽
from material-ui.
Related Issues (20)
- [material-ui] Restructure so nested slots are not needed
- [material-ui][Select] Typescript errors with generic argument for multiple select HOT 2
- [material-ui][joy-ui][base-ui][Autocompelte] Highlighted index is broken when inserting new item HOT 3
- [material-ui][Tabs] Scrollable variant fails test when clicking the tab (error reading 'offsetHeight') HOT 1
- [docs] Provide a hook or function we can dynamic inject our custom theme options
- [system][cssVars] Add functional update support to `setMode` from `getColorScheme` HOT 4
- [material-ui][docs] The "Basic dialog" example doesn't support back button HOT 1
- [material-ui][Drawer] Unclear docs for displaying it under the Appbar HOT 1
- [material-ui][Select] Type arguments do not constraint `variant` prop accordingly HOT 3
- [joy-ui] Make the size prop breakpoint-aware HOT 1
- [material-ui][Autocomplete] Typing first letter of the label inside a menu closes it HOT 4
- [material-ui][Select] TS errors with the updated `SelectProps` and when used in Storybook HOT 4
- [pigment-css][nextjs] Support turbo mode in Pigment CSS Nextjs plugin HOT 1
- [material-ui][Dialog] Specifying onClick prop disables backdrop clicks HOT 6
- [material-ui][Text Field] Right-to-left icon issue HOT 2
- [pigment-css][docs] Docs suggestions HOT 4
- [pigment-css] Support cross-referencing components HOT 2
- [pigment-css] Using Proxies to enable dot notation HOT 4
- [base-ui] Remove all sources from http://github.com/mui/material-ui HOT 3
- Material UI icon pack is not installing in react 18.2.0 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 material-ui.