fix a bug where datalist elements wouldn't actually set the value of the input associated with them
This commit is contained in:
parent
40b94e97e5
commit
5daaff91ea
1 changed files with 1 additions and 1 deletions
|
@ -203,7 +203,7 @@ void AutofillAgent::ShowPopup(
|
||||||
void AutofillAgent::OnAcceptSuggestion(base::string16 suggestion) {
|
void AutofillAgent::OnAcceptSuggestion(base::string16 suggestion) {
|
||||||
auto element = render_frame()->GetWebFrame()->GetDocument().FocusedElement();
|
auto element = render_frame()->GetWebFrame()->GetDocument().FocusedElement();
|
||||||
if (element.IsFormControlElement()) {
|
if (element.IsFormControlElement()) {
|
||||||
ToWebInputElement(&element)->SetSuggestedValue(
|
ToWebInputElement(&element)->SetAutofillValue(
|
||||||
blink::WebString::FromUTF16(suggestion));
|
blink::WebString::FromUTF16(suggestion));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue