TypeAhead migration to 0.11.1

25 views
Skip to first unread message

Josselin B.

unread,
Feb 6, 2019, 5:26:55 AM2/6/19
to GwtBootstrap3
Hi,

I've just successfully upgrade typeahead library from 0.10.5 to 0.11.1 in gwtbootstrap3-extras (my need was the Default Suggestions feature in order to open the list when user click the input).
Main problem was the dataset display option that use stringify by default, that will sometimes cause circular references exceptions.

In the Typeahead java class, i've updated the toJSO(Dataset<T> dataset) function, and added this option after source: findMatches() :

display: function(data) { return data.value },

The css needs also to be updated by replacing .tt-dropdown-menu by .tt-menu and replace .tt-suggestion.tt-cursor by .tt-suggestion:hover


Regards
Reply all
Reply to author
Forward
0 new messages