bootstrap-ajax-typeahead icon indicating copy to clipboard operation
bootstrap-ajax-typeahead copied to clipboard

Uncaught TypeError: Cannot read property 'hasOwnProperty' of undefined

Open vleboulanger opened this issue 7 years ago • 0 comments

Hi,

I download source code today and test autocompletion and I have this error when I try this code :

$('#user').typeahead({source: [ { id: 1, name: 'Toronto' }, { id: 2, name: 'Montreal' }, { id: 3, name: 'New York' }, { id: 4, name: 'Buffalo' }, { id: 5, name: 'Boston' }, { id: 6, name: 'Columbus' }, { id: 7, name: 'Dallas' }, { id: 8, name: 'Vancouver' }, { id: 9, name: 'Seattle' }, { id: 10, name: 'Los Angeles' } ] });

and i have this error

bootstrap-typeahead.js:308 Uncaught TypeError: Cannot read property 'hasOwnProperty' of undefined at Typeahead.grepper (bootstrap-typeahead.js:308)

I have library :

  • jQuery v3.2.1
  • Bootstrap v3.3.7

Have you an idea? Thanks

vleboulanger avatar Jul 17 '18 15:07 vleboulanger