Opened 2 years ago

Last modified 2 years ago

#15140 open bug

Selectmenu: Incorrect navigation when typing while menu is open

Reported by: Viktor Stískala Owned by:
Priority: minor Milestone: none
Component: ui.selectmenu Version: 1.12.1
Keywords: Cc:
Blocked by: Blocking:

Description

When typing repeating characters, the wrong item is selected from the menu. You can compare the results when typing "55" using this example: https://jsfiddle.net/jrmLfkob/23/

In the native input, the expected "55" option is selected, but in the jQuery UI menu the "5.7" option is selected instead.

The reason behind this behaviour is in these lines of code (https://github.com/jquery/jquery-ui/blob/master/ui/widgets/menu.js#L247-L248), but because I don't know the original intent of this functionality I don't dare to just delete them.

Change History (1)

comment:1 Changed 2 years ago by Scott González

Component: ui.menuui.selectmenu
Status: newopen
Summary: Wrong option gets selected when typing repeating charactersSelectmenu: Incorrect navigation when typing while menu is open

The behavior we've implemented matches the behavior of the native select when the menu is closed. This will be interesting to deal with since the concept of being open or closed comes from selectmenu, but the keyboard navigation comes from menu.

Note: See TracTickets for help on using tickets.