diff options
author | Jason <jason.daurus@gmail.com> | 2016-06-25 02:18:52 +0800 |
---|---|---|
committer | Jason <jason.daurus@gmail.com> | 2016-06-25 02:18:52 +0800 |
commit | 2b7923b4f41ec6f8d08c17b2c4a4930e95387e1c (patch) | |
tree | d576bb9705f7c3eeaa98ecfa6b829101b180fbf9 /web/src/js/components/ProxyApp.jsx | |
parent | 8da623c60389bffc76dd3c1b6d8055dd19f97607 (diff) | |
download | mitmproxy-2b7923b4f41ec6f8d08c17b2c4a4930e95387e1c.tar.gz mitmproxy-2b7923b4f41ec6f8d08c17b2c4a4930e95387e1c.tar.bz2 mitmproxy-2b7923b4f41ec6f8d08c17b2c4a4930e95387e1c.zip |
[web] fix actions
Diffstat (limited to 'web/src/js/components/ProxyApp.jsx')
-rw-r--r-- | web/src/js/components/ProxyApp.jsx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/web/src/js/components/ProxyApp.jsx b/web/src/js/components/ProxyApp.jsx index 84564c32..1ac979bc 100644 --- a/web/src/js/components/ProxyApp.jsx +++ b/web/src/js/components/ProxyApp.jsx @@ -77,8 +77,8 @@ class ProxyAppMain extends Component { break default: let main = this.refs.view - if (this.refs.view.getWrappedInstance) { - main = this.refs.view.getWrappedInstance() + if (this.refs.view.refs.wrappedInstance) { + main = this.refs.view.refs.wrappedInstance } if (main.onMainKeyDown) { main.onMainKeyDown(e) @@ -87,9 +87,10 @@ class ProxyAppMain extends Component { } if (name) { - const headerComponent = this.refs.header + const headerComponent = this.refs.header.refs.wrappedInstance || this.refs.header headerComponent.setState({ active: Header.entries[0] }, () => { - headerComponent.refs.active.refs[name].select() + const active = headerComponent.refs.active.refs.wrappedInstance || headerComponent.refs.active + active.refs[name].select() }) } |