Skip to content

Commit

Permalink
fix(dropdown): Searching fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Godi committed Jun 27, 2017
1 parent 10ae060 commit fbc0b94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/elements/dropdown/Dropdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ export class NovoDropdownElement extends OutsideClick implements OnInit, OnDestr
let char = String.fromCharCode(event.keyCode);
this.filterTerm = this.filterTerm.concat(char);
let index = this._textItems.findIndex((value: string) => {
return new RegExp(`^${this.filterTerm.toLowerCase()}`).test(value.toLocaleLowerCase());
return new RegExp(`^${this.filterTerm.toLowerCase()}`).test(value.trim().toLowerCase());
});
if (index !== -1) {
if (this.activeIndex !== -1) {
Expand Down

0 comments on commit fbc0b94

Please sign in to comment.