Skip to main content

Questions tagged [typeahead.js]

typeahead.js is a JavaScript library written by Twitter for computing and displaying suggestions as the user types - for instance, to implement autocomplete functionality

typeahead.js
0 votes
0 answers
51 views

Uncaught TypeError: Cannot read properties of undefined (reading 'indexOf') in addActiveClass function

I'm encountering a JavaScript error in my web application. I'm getting an "Uncaught TypeError: Cannot read properties of undefined (reading 'indexOf')" error on line 2 of vendor.bundle.base....
tech's user avatar
  • 11
0 votes
0 answers
15 views

Typeahead.js with accents, dash etc

I'm using typeahead.js to auto-complete city names. It is working, except when there is an accent (like "Mièges" the suggestion will stop at "Mie" if I do not put the "è" ...
Hejya's user avatar
  • 43
0 votes
1 answer
44 views

jquery.typeahead matched result causes modal for to close and parent to reload on hitting the enter key

The modal forms in our app all close and reload the parent form when you hit the enter key. Not really causing an issue but can get round that with the code below: $(document).ready(...
Derek Jee's user avatar
  • 147
1 vote
1 answer
99 views

`display` option in typeahead.js does not work

I have been at this for hours, and I am sure I am making a dumb mistake. But I am at a loss... Here is what I have checked: docs: https://github.com/corejavascript/typeahead.js/blob/master/doc/...
Code2Empower's user avatar
0 votes
0 answers
46 views

Why typeahead does not show results?

I use this plugin. The HTML element is: <input class="form-control typeahead" maxlength="50" id="secondname" required="required" name="secondname" ...
Megan Clerc's user avatar
0 votes
1 answer
107 views

Jquery Typeahead not returning data FROM JSON

I am working on a project that requires to typeahead textbox when some data is inputted and the data will be fetched from a webservice using query string. I only want to show the Name, StateCode, ...
user3068888's user avatar
1 vote
0 answers
31 views

Generating twitter typeahead for dynamically created input

I want to create typeahead in a form where input is created on click of a button dynamically. I have been able to generate the typeahead successfully for that. But when I click on the button again and ...
snehlata's user avatar
0 votes
1 answer
119 views

Bootstrap tagsinput initial value setting it by javascript fails

I'm using bootstrap-tagsinput v0.8.0 It mostly works, but I have trouble setting an initial value by javascript. I don't know how to call the "refresh" - method from the js file, too. I try ...
Adder's user avatar
  • 5,828
0 votes
1 answer
55 views

NgxTypeAhead throws list.filter is not a function within its code

I have the following code from here: Simple Typeahead with Local Data List In the component template, add the following Input form field control with ngxTypeahead directives and some other required ...
Peter The Angular Dude's user avatar
0 votes
1 answer
134 views

AutoComplete in jQuery with dynamically added elements works only in first input field

I have a scenario where when we load the page for the first time it will have an input field along with a button to add more rows. In my case, the autocomplete works on the very first row and it is ...
Rich's user avatar
  • 175
2 votes
1 answer
822 views

onChange handler in async typeahead is not called when triggered using "user event" in react testing library

I am trying to test a specific functionality that's defined inside onChange handler of AsyncTypeahead component from react-bootstrap-typeahead library. But onChange handler and selected property are ...
Ashwini's user avatar
  • 391
0 votes
1 answer
295 views

Suggestions not showing inside Table Row (bootstrap, typeahead.js, laravel)

As you can see in the below screenshot whenever I click on Add Dependents it would dynamically add a table row as shown in the screenshot. Inside the screenshot you can also see that when I type A the ...
Utsav Dave's user avatar
1 vote
1 answer
60 views

Typeahead.js, Searches Don't Work After Fetching Remote Data

Typeahead.js is not updating the search index after requesting remote data. I type a query, it fetches results, and then it always displays the first N items without respect to the query. I have used ...
user137717's user avatar
  • 2,125
1 vote
0 answers
28 views

Not able to show data for Multiple Datasets using typeahead.js in rails app

Not able to show data for Multiple Datasets using typeahead.js in rails app typeahead.json.builder json.array!(@reports.first(5)) do |report| json.title report.title.truncate(130) end json.array!(@...
Sonalkumar sute's user avatar
1 vote
0 answers
152 views

Typeahead Bloodhound Do Something While Prefetch Is Happening

Bloodhound's prefetch feature is working great for me, but I would like to disable my inputs while the prefetch is happening. Does anyone know of a way to detect when the prefetch is happening, do ...
Ryan.Jones's user avatar

15 30 50 per page
1
2 3 4 5
86