Using "alternative key" breaks the search of local data array with children items #370

Closed
choxnox opened this Issue Aug 31, 2012 · 2 comments

Projects

None yet

2 participants

@choxnox
choxnox commented Aug 31, 2012

When I specify local data array such as:

data: { results: my_array, text: "name" }

and when I'm search for items, in the results I can see found items which can be selected, but their parent names are not displayed. The markup for parents look like this:

It's my guessing search locally doesn't consider using an alternative key (other than "text") to display parent's name, but still tries to use "text" key which is not being used in this case.

@ivaynberg
Collaborator

please create a jsfiddle

@choxnox
choxnox commented Aug 31, 2012

Here: http://jsfiddle.net/Nw54b/

Try to type in "Item 2.1" and you'll see "Item 2" (parent) is not in the list but it's HTML markup is.

@ivaynberg ivaynberg closed this in 222fa7e Aug 31, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment