[Bug] Dropdown and Enter

Hello!

I have a dropdown menu that displays a list of items. Once one is selected, a script runs and sets the "value" of the dropdown to empty. The problem arises when I use the "enter" key.

I will explain with images:

  1. There is nothing selected, I click on the dropdown menu as if I were looking for something, with the mouse I position myself on the “b” (it appears in light blue).
    image

  2. I am looking for an element that exists or does not exist (other than "b").
    image

  3. I press “enter” and the value “b” is selected, although I am not viewing it.
    image

The user expects that pressing “enter” returns the first item that appears, instead it returns the last value that the mouse was positioned over.

Other option would be to disable the "enter" function during the search, is this possible?

I am using the version 8.1.43.

Hi,

You're saying that when using the search functionality of the dropdown component, pressing enter will select the last hovered over option? If that's the case, this would clearly be a bug.

Out of curiosity, are you using the dropdown like a search/filter bar in your project (i.e. like the one at the top right corner of this page)?

Why ? What's the point of a dropdown with no value ?
Also, I don't see how that's related to the issue you explain afterwards.

Can you try explaining what you want to do ? And I do mean what, not how.

Yes, exactly that.

It's similar. Our dropdown menu allows you to quickly search for views (there are actually only 3 views, but there are a lot of "names" that can be associated with them and that's what's listed in the dropdown; the "name" is a parameter that contains a signal package).

The dropdown works like this:
*Select a name from the list
*Run a change script that takes me to the view
*The change script, when finished, leaves the "value" empty again

The "options" part of the dropdown always contains a list of names. We leave the "value" empty to indicate that it can be searched again (the text in the placeholder is "Search").

We are looking for a quick way to navigate to any of the 3 views we have, displaying the list of the "name" parameter (there are 20 now but in the future it will be more than 100).