Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 3.3
-
Component/s: None
-
Labels:None
-
Environment:Any
-
Affects:Documentation (User Guide, Ref. Guide, etc.), Compatibility/Configuration
Description
At the moment, the valueChangeListener method is being fired every time a character is added or deleted from the text field. It even fires when pressing the up/down arrow keys. Instead, the valueChange event should only be triggered when the user gives a more definite input, which can be by either clicking on an option from the list, selecting an option from the list with the keyboard, or pressing the enter key on the text field. Additionally, a textChange event should be added, which will be triggered whenever the contents of the text field change before the user makes a clear decision about what the value of this component should be.
No, there has to be a submit anyway. The component needs to know which characters are in the text field in order to produce the list of possible results. The only scenario where this doesn't happen is when using the client side only mode.