summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/autofill_helper.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/renderer/autofill_helper.cc')
-rw-r--r--chrome/renderer/autofill_helper.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/renderer/autofill_helper.cc b/chrome/renderer/autofill_helper.cc
index 1ed6b09..ea1b4a7 100644
--- a/chrome/renderer/autofill_helper.cc
+++ b/chrome/renderer/autofill_helper.cc
@@ -167,6 +167,10 @@ void AutoFillHelper::DidAcceptAutoFillSuggestion(const WebNode& node,
} else if (form_manager_.FormWithNodeIsAutoFilled(node) || !unique_id) {
// User selected an Autocomplete entry, so we fill directly.
WebInputElement element = node.toConst<WebInputElement>();
+
+ // Set the suggested value to update input element value immediately in UI.
+ // The |setValue| call has update delayed until element loses focus.
+ element.setSuggestedValue(value);
element.setValue(value);
WebFrame* webframe = node.document().frame();