diff options
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() }) } |