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

Commit 2380b65

Browse files
vsvipulakashnimare
authored andcommitted
focus: Fix focus after clicking back button.
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.
1 parent 1d713f1 commit 2380b65

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/renderer/js/components/webview.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ class WebView extends BaseComponent {
225225
back() {
226226
if (this.$el.canGoBack()) {
227227
this.$el.goBack();
228+
this.focus();
228229
}
229230
}
230231

0 commit comments

Comments
 (0)