-
-
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] Input field hidden by autocomplete in mobile safari #5544
Comments
FWIW, I'm also observing this behavior in iOS Safari with material-ui v0.16.4 under React v15.4.1. Does anyone have a workaround in the meantime? |
@jamespizzurro No fix, and this is just a hunch, but I think the bug is in the Popover implementation (used by AutoComplete). Lots of calculations in there for computing position. |
Still experience this with material-ui |
@oliviertassinari any idea if we have a work around for this for now? |
this is also happening on mobile chrome and FF import AutoComplete from 'material-ui/AutoComplete'
import Dialog from 'material-ui/Dialog'
class Example extends Component {
state = {
dataSource: [],
};
handleUpdateInput = (value) => {
this.setState({
dataSource: [
value,
value + value,
value + value + value,
],
});
};
render() {
return (
<Dialog open={true}>
<AutoComplete
hintText="Type anything"
dataSource={this.state.dataSource}
onUpdateInput={this.handleUpdateInput}
/>
</Dialog>
);
}
} the popover for the typeahead doesn't anchor correctly. surprisingly it works fine on mobile width, it just happens when the actually user-agent is a mobile one. I suspect it has do with some mobile specific buggy calculations |
Are there any updates on this issue? I am having the same issue on Safari, mobile safari and mobile chrome. Autocomplete only seems to be working on desktop chrome |
Closed by #4783 |
after some digging through the code and releases. Here are my findings
Lots more effort necessary to make it actually work. lets see. |
Is there a solution as I am encouteting the same issue but on mobile for any device with the autocomplete view. |
@giordifungula do you have a reproduction with the lastest version of the library? |
Problem description
The user experience of the AutoComplete component on mobile devices could be improved. When you begin typing, the autocomplete options appear on top of the textfield.
The GIF below is from the simulator but it acts identically on a real device.
Link to minimally-working code that reproduces the issue
Nothing really special here. Just a regular AutoComplete component.
Versions
The text was updated successfully, but these errors were encountered: