mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 937377 - [e10s] Selecting an item in a <select> should trigger onChange (r=felipe)
This commit is contained in:
parent
ae1c027b6b
commit
457ee06846
@ -74,7 +74,13 @@ this.SelectContentHelper.prototype = {
|
||||
receiveMessage: function(message) {
|
||||
switch (message.name) {
|
||||
case "Forms:SelectDropDownItem":
|
||||
this.element.selectedIndex = message.data.value;
|
||||
if (this.element.selectedIndex != message.data.value) {
|
||||
this.element.selectedIndex = message.data.value;
|
||||
|
||||
let event = this.element.ownerDocument.createEvent("Events");
|
||||
event.initEvent("change", true, true);
|
||||
this.element.dispatchEvent(event);
|
||||
}
|
||||
|
||||
//intentional fall-through
|
||||
case "Forms:DismissedDropDown":
|
||||
|
Loading…
Reference in New Issue
Block a user