File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 2020 algoliaOptions : algoliaOptions ,
2121 transformData : transformData ,
2222 } )
23- var eventEmitter = controller . autocomplete
24- var autocomplete = eventEmitter . autocomplete
23+ var input = controller . input
24+ var autocomplete = input . autocomplete
2525 autocomplete . setVal ( )
26- eventEmitter . on ( 'autocomplete:selected' , disableClose )
27- controller . input . data ( 'aaAutocomplete' ) . dropdown . _ensureVisible = ensureVisible
26+ input . on ( 'autocomplete:selected' , disableClose )
27+ input . data ( 'aaAutocomplete' ) . dropdown . _ensureVisible = ensureVisible
2828 searchForm . addEventListener ( 'click' , confineEvent )
2929 document . documentElement . addEventListener ( 'click' , resetSearch . bind ( autocomplete ) )
30- if ( controller . input . attr ( 'autofocus' ) != null ) controller . input . focus ( )
30+ if ( input . attr ( 'autofocus' ) != null ) input . focus ( )
3131 }
3232
3333 function appendStylesheet ( href ) {
You can’t perform that action at this time.
0 commit comments