Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Commit

Permalink
Merge pull request #170 from brave/hide-autofill-popup
Browse files Browse the repository at this point in the history
Hide autofill popup only when webcontent is focused
  • Loading branch information
bbondy authored Mar 21, 2017
2 parents 1ea82e0 + 4b9327c commit 3023797
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion atom/browser/autofill/atom_autofill_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}
Expand Down

0 comments on commit 3023797

Please sign in to comment.