-
-
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
Disable menu items #402
Disable menu items #402
Conversation
… Created link and subheader menu components in js/menu/*.
Can you please resubmit this PR without build files |
Can do. I'll resubmit tonight/tomorrow morning. |
Removed build files. |
}, | ||
|
||
_handleOnClick: function(e) { | ||
if (this.props.onClick) this.props.onClick(e, this.props.index); | ||
console.log('inside menu-item click: ' + this.props.disabled); |
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.
Can you please remove this console log?
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.
Done.
Menu items can now be disabled. LINK menu items will lose the context menu entries for 'Open In New Tab/Window' if the are disabled. A menu item with a toggle will disable the toggle and the menu item (no hover change) as well as display the default cursor.
Moved the menu components into js/menu/*; the changes to LINK involved some logic that menu should not care about. SUBHEADER was extracted so that MenuItems are consistent. If this is an issue let me know and I'll flatten.