mirror of
https://github.com/electron/electron.git
synced 2026-01-10 16:08:06 -05:00
fix a bug where datalist elements wouldn't actually set the value of the input associated with them
This commit is contained in:
committed by
Cheng Zhao
parent
40b94e97e5
commit
5daaff91ea
@@ -203,7 +203,7 @@ void AutofillAgent::ShowPopup(
|
||||
void AutofillAgent::OnAcceptSuggestion(base::string16 suggestion) {
|
||||
auto element = render_frame()->GetWebFrame()->GetDocument().FocusedElement();
|
||||
if (element.IsFormControlElement()) {
|
||||
ToWebInputElement(&element)->SetSuggestedValue(
|
||||
ToWebInputElement(&element)->SetAutofillValue(
|
||||
blink::WebString::FromUTF16(suggestion));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user