[Autocomplete] Types force multiple to be set
See original GitHub issuePrior to 4.9.0 (lab-alpha-40) /**
- If
true
,value
must be an array and the menu will support multiple selections. */ multiple?: boolean;
After 4.9.0" /**
- If
true
,value
must be an array and the menu will support multiple selections. */ multiple?: true;
I think it is a bug. Interface cannot have constants.
- The issue is present in the latest release.
- I have searched the issues of this repository and believe that this is not a duplicate.
Current Behavior 😯
Expected Behavior 🤔
Steps to Reproduce 🕹
Steps:
Context 🔦
Your Environment 🌎
Tech | Version |
---|---|
Material-UI | v4.?.? |
React | |
Browser | |
TypeScript | |
etc. |
Issue Analytics
- State:
- Created 4 years ago
- Comments:19 (15 by maintainers)
Top Results From Across the Web
[Autocomplete] Types force multiple to be set #19354 - GitHub
I think it is a bug. Interface cannot have constants. The issue is present in the latest release. I have searched the issues...
Read more >How to use Material-UI Autocomplete component to select ...
You want to enable multi selection, and allow the user to enter any arbitrary value in the textbox. Therefore you can use the...
Read more >autofill - CSS: Cascading Style Sheets - MDN Web Docs
The :autofill CSS pseudo-class matches when an <input> element has its value autofilled by the browser. The class stops matching if the user ......
Read more >Place Autocomplete Restricted to Multiple Countries
This example uses the Place Autocomplete widget to provide a type-ahead search box. ... Set initial restriction to the greater list of countries....
Read more >Use AutoComplete when entering formulas - Microsoft Support
Turn on AutoComplete. On the Excel menu, click Preferences. Under Formulas and Lists, click AutoComplete. Select the Show AutoComplete options for functions ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@DevMammadov See this test case: https://github.com/mui-org/material-ui/blob/1fd983abd9c26d3d751f99d2efbfa2e5ab063786/packages/material-ui-lab/src/Autocomplete/Autocomplete.spec.tsx.
i want costumize Autocomplate like this:
but it gives me an error like this: Generic type ‘AutocompleteProps<T, Multiple, DisableClearable, FreeSolo>’ requires 4 type argument(s) what can i do in this situation ?