Ensure autofillLabel is undefined if searchApi fails
This commit is contained in:
@@ -186,7 +186,7 @@
|
|||||||
if ( this.options.searchAPI ) {
|
if ( this.options.searchAPI ) {
|
||||||
this.searchAPI( query )
|
this.searchAPI( query )
|
||||||
.done( this.resultHandler.bind( this ) )
|
.done( this.resultHandler.bind( this ) )
|
||||||
.fail( this.resultHandler.bind( this, query, results ) );
|
.fail( this.resultHandler.bind( this, query, results, undefined ) );
|
||||||
} else {
|
} else {
|
||||||
this.resultHandler( query, results );
|
this.resultHandler( query, results );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user