-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
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
ListItem is not getting highlighted until touching away on mobile. #15750
Comments
The described behavior looks correct. How is this a problem? (please use a real device, not a simulator) |
The desktop gif behavior is correct. I have tried with an iPad Pro 9.7 (iOS 11), it's ok. I believe it's a duplicate of #15736. I'm closing. |
I had the same problem of #15736, and solved it doing the following override* on my theme, but couldn't do the same for this one. *override:
|
I couldn't find a duplicate to this problem, but I think it is similar (if not the same) to this one #7692 although, I'm not quite sure of this as I couldn't successfully override the behavior on my default theme.
Expected Behavior 🤔
The expected behavior should be the same as in desktop. When you touch a ListItem, it should get highlighted, as if selected = true.
Current Behavior 😯
When you touch a ListItem, it doesn't get highlighted right away, but if you touch on a blank space or another ListItem then it gets highlighted.
Steps to Reproduce 🕹
Upload gif to explain further, first click is on inbox, second on starred:
![ListItemMobile](https://user-images.githubusercontent.com/5272368/57990107-7db29d80-7a79-11e9-82c1-d5f291cc2b67.gif)
Context 🔦
I was trying to use the Responsive Drawer on mobile and it got confusing touching on each ListItem, as the last one was getting highlighted when I touched the next one on an iPad mini 2.
I know I could just disable the highlight passing the prop "selected=false" to the ListItem, but I don't think that's the point.
Your Environment 🌎
This happens in my environment and also in the standard one in the official material-ui webpage.
The text was updated successfully, but these errors were encountered: