From 1324c264cebb3e0802f334e3270532cc26bdb794 Mon Sep 17 00:00:00 2001
From: Alexis Lopez Zubieta <contact@azubieta.net>
Date: Wed, 11 Sep 2019 15:42:21 -0500
Subject: [PATCH] workaround for input cursor invisible after navigation in
 webview

---
 app/scripts/components/WebviewComponent.js | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/app/scripts/components/WebviewComponent.js b/app/scripts/components/WebviewComponent.js
index 461185f..3fddb6d 100644
--- a/app/scripts/components/WebviewComponent.js
+++ b/app/scripts/components/WebviewComponent.js
@@ -102,6 +102,11 @@ export default class WebviewComponent extends BaseComponent {
 
         this._webview.addEventListener('did-stop-loading', () => {
             this.dispatch('webview_loading', {isLoading: false});
+
+            // workaround for Input cursor invisible after navigation in webview
+            // details at https://github.com/electron/electron/issues/14474
+            this._webview.blur();
+            this._webview.focus();
         });
 
         this._webview.addEventListener('dom-ready', () => {
-- 
GitLab