[web] fix shortcut for header fields

This commit is contained in:
Jason 2016-06-09 18:03:40 +08:00
parent f306cfa8b6
commit e24bf8d73f
3 changed files with 3 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -134,7 +134,7 @@ class ProxyAppMain extends Component {
if (name) {
const headerComponent = this.refs.header
headerComponent.setState({active: MainMenu}, function () {
headerComponent.setState({ active: MainMenu }, () => {
headerComponent.refs.active.refs[name].select()
})
}

View File

@ -442,6 +442,7 @@ export var Header = React.createClass({
</nav>
<div className="menu">
<this.state.active
ref="active"
settings={this.props.settings}
updateLocation={this.props.updateLocation}
query={this.props.query}