From 40ec015ddd36d6da46eb741d1ebcde87d7c80231 Mon Sep 17 00:00:00 2001 From: Pavel Pomerantsev Date: Thu, 4 Jun 2015 14:59:23 +0300 Subject: [PATCH] Fix left-nav behavior in full-screen Fixes #366. The problem is that the click event is fired *after* left-nav opens. We're safe though if we just replace it with onTouchTap. --- docs/src/app/components/app-left-nav.jsx | 2 +- src/left-nav.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/app/components/app-left-nav.jsx b/docs/src/app/components/app-left-nav.jsx index 48242dfe03d72d..6f976333152c36 100644 --- a/docs/src/app/components/app-left-nav.jsx +++ b/docs/src/app/components/app-left-nav.jsx @@ -41,7 +41,7 @@ class AppLeftNav extends React.Component { render() { var header = ( -
+
material ui
); diff --git a/src/left-nav.jsx b/src/left-nav.jsx index c4b76f136d8bb1..fb9538b5254628 100644 --- a/src/left-nav.jsx +++ b/src/left-nav.jsx @@ -162,7 +162,7 @@ var LeftNav = React.createClass({ menuItemStyleLink={this.mergeAndPrefix(styles.menuItemLink)} menuItemStyleSubheader={this.mergeAndPrefix(styles.menuItemSubheader)} selectedIndex={selectedIndex} - onItemClick={this._onMenuItemClick} /> + onItemTap={this._onMenuItemClick} />
);