-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[Autocomplete] disablePortal and classes.popperDisablePortal are not usable #18305
Comments
@kelvin2200 Thanks for the report, it will be released in the lab, version 4.0.0-alpha.32, today. |
Thanks. Really need this. |
Released |
popperDisablePortal class is still not available. line 118 |
For those that encounter problems with the Autocomplete in @material-ui/lab@4.0.0-alpha.32 |
Also, if anyone will ever take this into consideration, a method for controlling the behavior of a custom Autocomplete's input would be much appreciated. More specifically, a |
@kelvin2200 We have fixed the peer dependency recently, it will be release next week. |
|
|
I have the same problem as kevin2200 with the input. It closes on click unless there is text in it and that is not optimal behaviour. Although the search functionality is in place, the user can get easily confused by the fact that clicking on the input field closes the popper. Using ClickAwayListener solves the problem but clicking on the select list now closes the component. disableCloseOnSelect does not prevent this behaviour. |
Same problem here, using Here is what my component looks like :
|
@marrakchim Do you have a live reproduction we can look at? |
Can confirm that |
@bazfer Do you have a reproduction? |
We've got an example on our Storybook (click 'New' top right, then use the 'Departments' or 'Locations' Autocomplete fields). Is that enough or are you looking for a code sandbox? |
@bazfer We need a codesandbox with the minimum amount of code possible. |
Follow up: can't repro on minimal case. Thanks for the prompt replies. |
Current Behavior 😯
Material-UI: the key
popperDisablePortal
provided to the classes prop is not implemented in ForwardRef(Autocomplete).You can only override one of the following: root,focused,tag,inputRoot,input,inputFocused,clearIndicator,clearIndicatorDirty,popupIndicator,popupIndicatorOpen,popup,paper,listbox,loading,noOptions,option,groupLabel,groupUl.
Warning: React does not recognize the
disablePortal
prop on a DOM element.Context 🔦
I am trying to design a custom autocomplete as per the example that reproduces the GitHub's label picker found on:
https://material-ui.com/components/autocomplete/
I don't have to actually do a sandbox, because i checked the es, esm and ts versions of the Autocomplete inside node_modules, and i found that those props are NOT defined, so the error is legit.
Am i using the wrong lab version?
Because whatever version is used on the material-ui website is NOT the one available to mortals.
Your Environment 🌎
The text was updated successfully, but these errors were encountered: