File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -334,7 +334,7 @@ App.Controls.TagInput = function($underlyingInput) {
334334 updateSuggestions ( $siblings , $siblings . data ( 'siblings' ) ) ;
335335 }
336336
337- function updateSuggestions ( $target , siblings ) {
337+ function updateSuggestions ( $target , suggestedTagNames ) {
338338 function filterSuggestions ( sourceTagNames ) {
339339 if ( ! sourceTagNames ) {
340340 return [ ] ;
@@ -367,7 +367,7 @@ App.Controls.TagInput = function($underlyingInput) {
367367 } ) ;
368368 }
369369
370- var suggestions = filterSuggestions ( siblings ) ;
370+ var suggestions = filterSuggestions ( suggestedTagNames ) ;
371371 if ( suggestions . length > 0 ) {
372372 attachTagsToSuggestionList ( $target . find ( 'ul' ) , suggestions ) ;
373373 $target . slideDown ( 'fast' ) ;
@@ -398,6 +398,7 @@ App.Controls.TagInput = function($underlyingInput) {
398398 function hideSuggestions ( ) {
399399 $siblings . hide ( ) ;
400400 $suggestions . hide ( ) ;
401+ $siblings . data ( 'siblings' , [ ] ) ;
401402 }
402403
403404 _ . extend ( options , {
You can’t perform that action at this time.
0 commit comments