diff --git a/atom/browser/autofill/atom_autofill_client.cc b/atom/browser/autofill/atom_autofill_client.cc index 78ca7f73ae..8f8192324f 100644 --- a/atom/browser/autofill/atom_autofill_client.cc +++ b/atom/browser/autofill/atom_autofill_client.cc @@ -196,7 +196,7 @@ void AtomAutofillClient::UpdateAutofillPopupDataListValues( } void AtomAutofillClient::HideAutofillPopup() { - if (api_web_contents_) { + if (api_web_contents_ && api_web_contents_->IsFocused()) { api_web_contents_->Emit("hide-autofill-popup"); } }