зеркало из https://github.com/mozilla/gecko-dev.git
Bug 711177 - Form autocomplete popup doesn't appear on tap of input. r=lucasr
This commit is contained in:
Родитель
d937daecd0
Коммит
a59400ff1c
|
@ -2913,7 +2913,13 @@ var FormAssistant = {
|
||||||
switch (aEvent.type) {
|
switch (aEvent.type) {
|
||||||
case "focus":
|
case "focus":
|
||||||
let currentElement = aEvent.target;
|
let currentElement = aEvent.target;
|
||||||
this._showValidationMessage(currentElement);
|
|
||||||
|
// Prioritize a form validation message over autocomplete suggestions
|
||||||
|
// when the element is first focused (a form validation message will
|
||||||
|
// only be available if an invalid form was submitted)
|
||||||
|
if (this._showValidationMessage(currentElement))
|
||||||
|
break;
|
||||||
|
this._showAutoCompleteSuggestions(currentElement)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "input":
|
case "input":
|
||||||
|
|
Загрузка…
Ссылка в новой задаче