Skip to content

Commit

Permalink
Merge pull request #105 from DracoBlue/patch-2
Browse files Browse the repository at this point in the history
Remove the remainder based on the optional label value.
  • Loading branch information
samuelclay committed Feb 10, 2014
2 parents 958e94c + 6da6277 commit 3943eaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/js/views/search_input.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ VS.ui.SearchInput = Backbone.View.extend({
e.preventDefault();
// stopPropogation does weird things in jquery-ui 1.9
// e.stopPropagation();
var remainder = this.addTextFacetRemainder(ui.item.value);
var remainder = this.addTextFacetRemainder(ui.item.label || ui.item.value);
var position = this.options.position + (remainder ? 1 : 0);
this.app.searchBox.addFacet(ui.item instanceof String ? ui.item : ui.item.value, '', position);
return false;
Expand Down

0 comments on commit 3943eaf

Please sign in to comment.