From a093a464898a28cdacec2a2428800335a611a1ca Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 11 Jan 2021 18:32:48 +0100 Subject: [PATCH] changed focus methods trailing spaces --- apps/remix-ide/src/app/components/main-panel.js | 5 +++++ apps/remix-ide/src/app/components/side-panel.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/remix-ide/src/app/components/main-panel.js b/apps/remix-ide/src/app/components/main-panel.js index 53b6c0f94c..62d76cf4c3 100644 --- a/apps/remix-ide/src/app/components/main-panel.js +++ b/apps/remix-ide/src/app/components/main-panel.js @@ -24,6 +24,11 @@ export class MainPanel extends AbstractPanel { super(profile) } + focus (name) { + this.emit('focusChanged', name) + super.focus(name) + } + render () { return yo`
diff --git a/apps/remix-ide/src/app/components/side-panel.js b/apps/remix-ide/src/app/components/side-panel.js index b2a242ab7d..9df8dacb06 100644 --- a/apps/remix-ide/src/app/components/side-panel.js +++ b/apps/remix-ide/src/app/components/side-panel.js @@ -92,6 +92,7 @@ export class SidePanel extends AbstractPanel { focus (name) { this.emit('focusChanged', name) + super.focus(name) } removeView (profile) { @@ -112,7 +113,6 @@ export class SidePanel extends AbstractPanel { async showContent (name) { super.showContent(name) this.renderHeader() - this.focus(name) } /** The header of the side panel */