-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
icon-menu using popover #2149
icon-menu using popover #2149
Conversation
closeOnItemTouchTap: React.PropTypes.bool, | ||
iconButtonElement: React.PropTypes.element.isRequired, | ||
iconStyle: React.PropTypes.object, | ||
openDirection: PropTypes.corners, | ||
menuOverlapsIcon: React.PropTypes.bool, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to me that you are not using menuOverlapsIcon
I have noticed one issue, the |
@oliviertassinari this one is good to review again |
@@ -279,8 +279,9 @@ export default class IconMenus extends React.Component { | |||
<div> | |||
<IconMenu | |||
iconButtonElement={mapsButtonElement} | |||
maxHeight={272} | |||
openDirection="bottom-right" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you remove openDirection
form the doc and add the new properties?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 for updating the docs, I had hard time before finding this
@chrismcv It's almost ready to be merged 👍. |
@oliviertassinari should be good now |
@chrismcv Thanks |
[icon-menu] Use popover component
I have just noticed one issue. I feel like there is a delay between a tap on an item and the closing of the menu. Do you confirm? |
It may be linked to touchTapCloseDelay. I will investigat tomorrow |
Actually, it takes time to disappear when the component is unmounted. |
I think the issue is that the Level 1 menu is starting to animate its close (caused by |
@oliviertassinari gotcha. Next release we'll bump the minor version. |
Reworked from #1845
This means an icon-menu in a dialog can break outside it if needs be