Closed codenameone closed 6 years ago
I'd be surprised if that ever worked. The actionEvent is likely firing when the text field loses focus by clicking on the drop-down list. After selecting the item in the drop down list will trigger an event to the list listener (AutoCompleteTextField.addListListener()), but not to the action listeners of the text field.
It would be easy to make it fire two action events in this case - the first one with the field value prior to selecting an option in the autocomplete list - and the second one with the value after selecting the option in autocomplete. Making it fire just one action event (after selecting the option) would be trickier ... high probability of causing regressions if not done very carefully.
I can live with that. The class needs a rewrite at some point anyway so a smaller fix would be better.
This seems to be a regression related to text input:
aaa
The field will be
aaa
but the printout isT:
.The action event is invoked once by the synchronous editing code which completes when the popup is clicked and has no text yet. When the selection is made the action event isn't fired for some reason.