Skip to content

Commit

Permalink
fix(search): Don't select falsy items (#589)
Browse files Browse the repository at this point in the history
* fix(search): Don't select falsy items

* chore: Bump package version
  • Loading branch information
TSenter authored Jul 10, 2024
1 parent f60bdf1 commit acd6be0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions addon/components/nrg-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ export default class NrgSearchComponent extends NrgValidationComponent {
if (!item) {
item = this.items.slice()[this.activeItem];
}

if (!item) {
return;
}

this.onChange(item);
this.searchString = null;
this.onBlur();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ember-nrg-ui",
"version": "4.8.1",
"version": "4.8.2",
"description": "Opinionated UI addon based on how KUB scaffolds web applications",
"keywords": [
"ember-addon",
Expand Down

0 comments on commit acd6be0

Please sign in to comment.