flex combobox backspace or delete key does not delete highlighted text

Posted by crazy horse on Stack Overflow See other posts from Stack Overflow or by crazy horse
Published on 2010-03-26T00:17:51Z Indexed on 2010/03/26 0:23 UTC
Read the original article Hit count: 849

Filed under:
|
|

Context:
I am implementing a flex auto-suggest combobox - as the user types in each character: Consider the string 'Stackoverflow' and user input = 'st'

1) the data provider is filtered to show all items starting with 'st' 2) text is set to auto-suggest string such that the un-typed part is highlighted.

So for instance, the combobox text may contain st'ackoverflow', where 'ackoverflow' is highlighted using setSelectedIndex()

Issue:
When I hit back-space or delete, and check the 'this.text' value, I expect that the last un-highlighted character ('t' in the above case) gets deleted and the data provider is filtered to show all items starting with 's'. However the text property contains 'st', as before

Question:
what am I missing? What else can I try out?

© Stack Overflow or respective owner

Related posts about flex

Related posts about combobox