Bootstrap-3-Typeahead icon indicating copy to clipboard operation
Bootstrap-3-Typeahead copied to clipboard

highlighter is called with item’s name as the argument, but the documentation says it receives an item

Open gergelypolonkai opened this issue 8 years ago • 1 comments

The documentation says highlighter accepts item as its parameter, but when I try to check e.g. item.id, it returns undefined. It seems that the parameter is actually not the item, but the item’s name. (I think) I understand how it actually works, but the wording in the documentation is confusing.

gergelypolonkai avatar Feb 02 '17 12:02 gergelypolonkai

I guess this issue is solved in version 4.0.2 due to the render function calls your custom highlighter like this:

highlighter(text, item)

Just use the second argument.

aureole82 avatar Mar 20 '17 20:03 aureole82