Check the combination of quotes that appear in your html for the data source attribute. I had the same problem with the following code snippet.
<input type="text" name="test" id="test" class="span2" data-provide="typeahead"
data-items="4" data-source="['thisone','another','zzzz']">
switching to the next one that I saw in other examples did not fix it
data-source="["thisone","another","zzzz"]"
but switching to single quotes around the attribute value and double quotes for search items fixed by it. It works .
data-source='["thisone","another","zzzz"]'
Derek source
share