-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[IconMenu] Multiple IconMenus opened on iPhone #4480
Comments
If you need a sample code I can ask you to visit the site: Example: Messages List Turn on Chrome Developer Tools, enable iPhone 5S emulation i tried to click the triple dots icons to open few IconMenus. |
I got the same problem, too. |
I don't think that contributors will fix the bug quickly. |
I also reproduced this bug on Chrome/Mac, Safari/Mac, Chrome/Android and Opera/Android. Worked fine on Firefox/Mac+Android and Opera/Android. |
We are currently working on a large scale web application and it is really annoying that we can't get the Icon Menu to work properly on mobile devices. |
We have been removing the return (
<div>
<IconButton
aria-label="More"
aria-owns="long-menu"
aria-haspopup="true"
onClick={this.handleClick}
>
<MoreVertIcon />
</IconButton>
<Menu
id="long-menu"
anchorEl={this.state.anchorEl}
open={this.state.open}
onRequestClose={this.handleRequestClose}
style={{ maxHeight: ITEM_HEIGHT * 4.5 }}
MenuListProps={{
style: {
width: 200,
},
}}
>
{options.map(option =>
<MenuItem key={option} selected={option === 'Pyxis'} onClick={this.handleRequestClose}>
{option}
</MenuItem>,
)}
</Menu>
</div>
); Hence, I'm closing it. Still, we will accept PR fixes until v1-beta takes over the master branch. |
Problem description
I have created a Drawer with two buttons. Every button open an IconMenu. Buttons are place vertically in the distance of 300px. Google Chrome: if I click the button A, the IconMenu related to A will open. If then click button B, the IconMenu A will disappear and IconMenu B will appear.
Unfortunately this will not behave the same on iPhone 5s browser. The A IconMenu won't be hidden.
It seems to be an issue with the only event.preventDefault() invocation in IconMenu.js. Removing this method fixes the problem of two opened menus, but it allows for event bubbling of buttons.
Steps to reproduce
Versions
The text was updated successfully, but these errors were encountered: