Opened 3 years ago

Closed 3 years ago

#10571 closed bug (fixed)

Selectmenu throws exception when typing in a closed menu containing optgroups

Reported by: Simen Bekkhus Owned by:
Priority: blocker Milestone: 1.11.2
Component: ui.selectmenu Version: 1.11.1
Keywords: Cc:
Blocked by: Blocking:

Description

If you hav a Selectmenu with optgroups, and type while it has focus, it may hit an optgroup` as a result. If this happens, you get an exception.

Fiddle: http://jsfiddle.net/coLcs5pz/1/

Just put focus on the selectmenu, and type S, and you'll get an exception in the console.

Uncaught TypeError: Cannot read property 'index' of undefined

Change History (2)

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

Milestone: none1.11.2
Priority: minorblocker
Status: newopen

comment:2 Changed 3 years ago by Simen Bekkhus

Resolution: fixed
Status: openclosed

Menu: Filter out non-items when typing

Fixes #10571 Closes gh-1329

Changeset: e3e5a9ffa647937d2dd458114e27e04f56bd47d0

Note: See TracTickets for help on using tickets.