File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 53
53
var input = controller . input
54
54
var typeahead = input . data ( 'aaAutocomplete' )
55
55
var dropdown = typeahead . dropdown
56
- delete dropdown . datasets [ 0 ] . templates . footer
57
56
var menu = dropdown . $menu
57
+ var dataset = dropdown . datasets [ 0 ]
58
+ dataset . cache = false
59
+ delete dataset . templates . footer
58
60
typeahead . setVal ( ) // clear value on page reload
59
61
input . on ( 'autocomplete:closed' , clearSearch . bind ( typeahead ) )
60
62
input . on ( 'autocomplete:cursorchanged autocomplete:cursorremoved' , saveSearchState . bind ( typeahead ) )
118
120
window . localStorage . setItem ( SEARCH_FILTER_ACTIVE_KEY , e . target . checked )
119
121
if ( isClosed ( this ) ) return
120
122
var dropdown = this . dropdown
121
- dropdown . datasets [ 0 ] . clearCachedSuggestions ( )
122
123
dropdown . update ( this . getVal ( ) )
123
124
}
124
125
246
247
this . setVal ( )
247
248
this . $facetFilterInput . prop ( 'checked' , searchState . filter )
248
249
var dropdown = this . dropdown
249
- dropdown . datasets [ 0 ] . clearCachedSuggestions ( )
250
250
dropdown . restoring = searchState
251
251
this . $input . focus ( )
252
252
this . setVal ( searchState . query ) // cursor is restored by onResultsUpdated =>
You can’t perform that action at this time.
0 commit comments