Skip to main content

Search and Top Navigation

#9983 closed bug (notabug)

Opened April 16, 2014 09:31AM UTC

Closed April 16, 2014 12:24PM UTC

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.

Attachments (0)
Change History (1)

Changed April 16, 2014 12:24PM UTC by scottgonzalez comment:1

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.