PDA

View Full Version : [FIXED] setSelectOnFocus for TypedComboBox



jraue
4 Jun 2008, 6:24 AM
Hi,

am I the only one for whom setting setSelectOnFocus(true) on a TypedComboBox has no effect?

What I am experiencing (GXT beta 4 / GWT 1.5 / FireFox 2.0) is that when moving through a panel's element with the Tab key, the combobox does not select when it's its turn in the tab order. However, regardless of what I set in setSelectOnFocus, the combobox will get the tab focus again after all other elements and that time select its value.

Small glitch, just wanted to report it though.

Congratulations to the great work otherwise,

Joachim

darrellmeyer
4 Jun 2008, 11:43 AM
Fix is in SVN.

flow
17 Jun 2008, 2:09 AM
In FF2 you should not use setSelectOnFocus(true) for a ComboBox. This leads to a rather nasty TypeError due to the method setSelectionRange.

IMHO, the selectOnFocus doesn't make much sense at all in a ComboBox, where the user cannot enter values. Thus, I'd recommend to remove this method from the ComboBox.