Bug 793553 - [b2g] oninput is not fired when the content of an input field is changed. r=mounir

This commit is contained in:
Vivien Nicolas 2012-09-26 13:08:50 +02:00
parent 9bf667b781
commit bba028c12d

View File

@ -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;