Hi All,
I'm trying to do my own ComboBox that extends goog.ui.ComboBox; just so I can keep track of the selected MenuItem rather than just work with the text captions. So I thought overriding the dispatchEvent method would be the best way to do this so I have:
/** @inheritDoc */
my.MyComboBox.prototype.dispatchEvent = function(e) {
my.MyComboBox.superClass_.dispatchEvent.call(this, e);
};
But, just adding this code breaks the ComboBox (the selector panel does not hide upon selection). To me this code pretty much looks like it has no side effects, how did it break the events?
Note: Removing these 3 lines of code and everything works as expected.
Thanks in advance