You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 29, 2019. It is now read-only.
When an item is selected from the typeahead results list, the specified typeahead-on-select function is called; however, at that time the input's $viewValue is undefined.
Why I care: I'd like to record the search term actually used when a user selects an item from the typeahead results (e.g. they enter 'toy', and then select 'Toy Story', I'd like to record that the input that led to that choice was 'toy'). There are two reasons for this. 1) generating analytics data on which search terms are being used vs what users end up selecting, and 2) when an item is selected, the user is taken to a page specific to that item; I'd like to pass the search term into that page to generate a "similar results" list.
$watching the input's ng-model is not an option since that changes to the selected value upon selection.
Link to minimally-working plunker that reproduces the issue:
Bug description:
When an item is selected from the typeahead results list, the specified typeahead-on-select function is called; however, at that time the input's $viewValue is undefined.
Why I care: I'd like to record the search term actually used when a user selects an item from the typeahead results (e.g. they enter 'toy', and then select 'Toy Story', I'd like to record that the input that led to that choice was 'toy'). There are two reasons for this. 1) generating analytics data on which search terms are being used vs what users end up selecting, and 2) when an item is selected, the user is taken to a page specific to that item; I'd like to pass the search term into that page to generate a "similar results" list.
$watching the input's ng-model is not an option since that changes to the selected value upon selection.
Link to minimally-working plunker that reproduces the issue:
https://plnkr.co/edit/NXD4oxNhZi0kCdtuDk8i?p=preview
Steps to reproduce the issue:
Follow above plunker.
Version of Angular, UIBS, and Bootstrap
Angular: 1.5.8
UIBS: 2.5.0
Bootstrap: 3.7.7 (css only)
The text was updated successfully, but these errors were encountered: