Opened 8 years ago

Closed 8 years ago

#9983 closed bug (notabug)

autocomplete focuses on category, cause js error

Reported by: eerieannie Owned by:
Priority: minor Milestone: none
Component: ui.autocomplete Version: git (not yet released)
Keywords: Cc:
Blocked by: Blocking:

Description

Here is a jsfiddle: http://jsfiddle.net/3WusJ/

only in current master branch, older versions are fine.

If you open the console, you will see a javascript error "Uncaught TypeError: Cannot read property 'value' of undefined". The autocomplete focusses on categories, which causes a not working "autoFocus" and errors when you navigate with up and down arrows.

Change History (1)

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

Resolution: notabug
Status: newclosed

That's because you're not specifying what the items are for the menu. See https://github.com/jquery/jquery-ui/blob/master/demos/autocomplete/categories.html. If you need help, please use the forums or Stack Overflow.

Note: See TracTickets for help on using tickets.