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.
This commit is contained in:
ViPuL
2019-05-03 22:03:03 +05:30
committed by Akash Nimare
parent 1d713f1df2
commit 2380b650c9

View File

@@ -225,6 +225,7 @@ class WebView extends BaseComponent {
back() {
if (this.$el.canGoBack()) {
this.$el.goBack();
this.focus();
}
}