зеркало из https://github.com/mozilla/gecko-dev.git
Bug 793553 - [b2g] oninput is not fired when the content of an input field is changed. r=mounir
This commit is contained in:
Родитель
dd01ee7ca2
Коммит
841f04f831
|
@ -112,9 +112,14 @@ let FormAssistant = {
|
|||
|
||||
let json = msg.json;
|
||||
switch (msg.name) {
|
||||
case "Forms:Input:Value":
|
||||
case "Forms:Input:Value": {
|
||||
target.value = json.value;
|
||||
|
||||
let event = content.document.createEvent('HTMLEvents');
|
||||
event.initEvent('input', true, false);
|
||||
target.dispatchEvent(event);
|
||||
break;
|
||||
}
|
||||
|
||||
case "Forms:Select:Choice":
|
||||
let options = target.options;
|
||||
|
|
Загрузка…
Ссылка в новой задаче