Skip to content
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.

Commit

Permalink
Merge pull request #53 from adrian-enspired/truncating
Browse files Browse the repository at this point in the history
Odd Search Results
  • Loading branch information
Mobius1 committed Nov 15, 2017
2 parents a07dd5f + eef2fa8 commit 4edd383
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/selectr.js
Original file line number Diff line number Diff line change
Expand Up @@ -1883,6 +1883,10 @@
if ( ! string ) {
string = this.input.value;
live = true;

// Remove message and clear dropdown
this.removeMessage();
util.truncate(this.tree);
}
var results = [];
var f = document.createDocumentFragment();
Expand Down Expand Up @@ -1913,10 +1917,6 @@
}, this);

if ( live ) {
// Remove message and clear dropdown
this.removeMessage();
util.truncate(this.tree);

// Append results
if ( !f.childElementCount ) {
if ( !this.config.taggable ) {
Expand Down

0 comments on commit 4edd383

Please sign in to comment.