vitebonus / closure-library

Automatically exported from code.google.com/p/closure-library
0 stars 0 forks source link

Can't get model value from selected combo box item #570

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

If you call getValue() on an instance of goog.ui.ComboBox I would expect to get 
the model of the selected goog.ui.ComboBoxItem. If the model is not set then 
get the content value. 

Instead the content value is always returned.

Suggest changing the code for the goog.ui.ComboBox.prototype.setValue function 
from

return this.labelInput_.getValue();

to

return this.menu_.getHighlighted().getValue();

Ali.

Original issue reported on code.google.com by ali.taf...@googlemail.com on 5 Jul 2013 at 2:55