wcx6298 / smartgwt

Automatically exported from code.google.com/p/smartgwt
0 stars 0 forks source link

Hint text not displayed when combo box loses focus and AddUnknownValues is false #588

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create combobox
comboBoxItem.setShowTitle(false);
comboBoxItem.setShowHintInField(true);
comboBoxItem.setHint("Enter a problem");
comboBoxItem.setAutoFetchData(true);
comboBoxItem.setCompleteOnTab(true);
comboBoxItem.setDefaultToFirstOption(true);
comboBoxItem.setAddUnknownValues(false); // removing this fixes problem

2. Click on combobox and enter text
3. Click outside combobox box

Expected:
HintText should be displayed in field.

Actual:
Combobox is blank.

What version of the product are you using? On what operating system?
Smart GWT 2.5 19/05/2011 Win 7

What browser(s) does this happen in?

Firefox4/Chrome/IE8

Please provide any additional information below.

When no match is found hint text should be displayed.

A quick fix involves removing the AddUnknownValues option, however this 
functionality is then lost.

Original issue reported on code.google.com by vroues...@gmail.com on 19 May 2011 at 7:14

Attachments: