Skip to Content

ComboBox Textfield issue

Hello everyone,

I am facing a problem, my item is getting selected before I press Enter or select the item with mouse. So I start to search from the keyboard and attachSelectionChange is triggered after the first letter I type. I was looking for a method to check how many letters are written, or whether what is written is completely same like the item, than the selection can be done.

In the screenshot you can see the Textfield of the ComboBox. I wrote only L and Latvian got selected. (I continued La... to show the highlighting) I am quite new in sapui5, but I think there should be something to realise how many letters are highlighted, for example -tvian is highlighted.

Thanks in advance!

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Oct 25, 2019 at 04:06 PM

    it's default behavior of combo. When you type it shows first option matching and highlights it. You can always use backspace button to deletes the prepopulated part of text.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.