Skip to content

Commit

Permalink
Fix left-nav behavior in full-screen
Browse files Browse the repository at this point in the history
Fixes mui#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.
  • Loading branch information
pomerantsev committed Jun 4, 2015
1 parent cc3b3b9 commit 40ec015
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/src/app/components/app-left-nav.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class AppLeftNav extends React.Component {

render() {
var header = (
<div style={this.getStyles()} onClick={this._onHeaderClick}>
<div style={this.getStyles()} onTouchTap={this._onHeaderClick}>
material ui
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion src/left-nav.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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} />
</Paper>
</div>
);
Expand Down

0 comments on commit 40ec015

Please sign in to comment.