Skip to content

Commit

Permalink
[Autocomplete] Fix iOS double tap (#21060)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaplantm authored May 17, 2020
1 parent b289815 commit 5441d22
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/material-ui-lab/src/Autocomplete/Autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,15 @@ export { createFilterOptions };
export const styles = (theme) => ({
/* Styles applied to the root element. */
root: {
'&:hover $clearIndicatorDirty, &$focused $clearIndicatorDirty': {
'&$focused $clearIndicatorDirty': {
visibility: 'visible',
},
/* Avoid double tap issue on iOS */
'@media (pointer: fine)': {
'&:hover $clearIndicatorDirty': {
visibility: 'visible',
},
},
},
/* Styles applied to the root element if `fullWidth={true}`. */
fullWidth: {
Expand Down

0 comments on commit 5441d22

Please sign in to comment.