From c6732bb6ca2b393c5fbc948722e8978af5ca2fd3 Mon Sep 17 00:00:00 2001 From: Thomas Frederiksen Date: Sat, 29 Nov 2014 06:51:41 +0100 Subject: [PATCH 1/2] innerContainer was implicitly declared making it global scoped. This caused visibility problems for nested menu visibility. --- src/js/menu.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/menu.jsx b/src/js/menu.jsx index d0467242a91f1b..f15f4c279b5a32 100644 --- a/src/js/menu.jsx +++ b/src/js/menu.jsx @@ -71,6 +71,7 @@ var NestedMenuItem = React.createClass({ }, _onParentItemClick: function() { + console.log(this.state.open); this.setState({ open: !this.state.open }); }, @@ -217,7 +218,7 @@ var Menu = React.createClass({ if (this.props.hideable) { el = this.getDOMNode(); - innerContainer = this.refs.paperContainer.getInnerContainer().getDOMNode(); + var innerContainer = this.refs.paperContainer.getInnerContainer().getDOMNode(); if (this.props.visible) { From 8a2a92480756d1eaac0872491190323e4cde7c92 Mon Sep 17 00:00:00 2001 From: Thomas Frederiksen Date: Sat, 29 Nov 2014 06:57:04 +0100 Subject: [PATCH 2/2] Removed console.log --- src/js/menu.jsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/js/menu.jsx b/src/js/menu.jsx index f15f4c279b5a32..595999c37d7861 100644 --- a/src/js/menu.jsx +++ b/src/js/menu.jsx @@ -71,7 +71,6 @@ var NestedMenuItem = React.createClass({ }, _onParentItemClick: function() { - console.log(this.state.open); this.setState({ open: !this.state.open }); },