bootleaf
bootleaf copied to clipboard
search dropbox not displaying result content
Hello, I'm quite new to everything and don't know if I'm doing that right. But I add the issue where taking the code as it is with the latest version of typeahead (11.1), the content of search was not displaying:
I had to change:
suggestion: Handlebars.compile(["{{name}}<br> <small>{{address}}</small>"].join(""))
to
suggestion: Handlebars.compile('<div>{{name}}<br> <small>{{address}}</small></div>')
It might be trivial for some, not for me... I guess it has to do with the new version. Just thought some people might be interested... sorry if this this is not the way of suggesting modification
And a big thanks for writing this really cool plugin!
and also change the hovering (https://github.com/twitter/typeahead.js/issues/1195)
.tt-suggestion.tt-cursor, .tt-suggestion:hover {
background-color: #0097CF;
color: #FFFFFF;
cursor: pointer;
}