Skip to content
This repository has been archived by the owner on Jun 3, 2020. It is now read-only.

Commit

Permalink
focus: Fix focus after clicking back button.
Browse files Browse the repository at this point in the history
Addresses the issue of the webview not being in focus
after the Back button is clicked. Now, the webview is focused
explicitly by calling focus() on click.
  • Loading branch information
vsvipul authored and akashnimare committed May 3, 2019
1 parent 1d713f1 commit 2380b65
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/renderer/js/components/webview.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ class WebView extends BaseComponent {
back() {
if (this.$el.canGoBack()) {
this.$el.goBack();
this.focus();
}
}

Expand Down

0 comments on commit 2380b65

Please sign in to comment.