Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions apps/remix-ide/src/app/components/main-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ export class MainPanel extends AbstractPanel {
super(profile)
}

focus (name) {
this.emit('focusChanged', name)
super.focus(name)
}

render () {
return yo`
<div class=${css.pluginsContainer} data-id="mainPanelPluginsContainer">
Expand Down
2 changes: 1 addition & 1 deletion apps/remix-ide/src/app/components/side-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export class SidePanel extends AbstractPanel {

focus (name) {
this.emit('focusChanged', name)
super.focus(name)
}

removeView (profile) {
Expand All @@ -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 */
Expand Down