Skip to content

Commit

Permalink
fix selected
Browse files Browse the repository at this point in the history
  • Loading branch information
artem.sedykh committed Sep 5, 2021
1 parent 6a73afa commit 9a134b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/dropdown-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ class HumidifierDropdownBase extends LitElement {
}

get selectedId() {
return this.items.map(item => item.id).indexOf(this.selected);
return this.items.map(item => item.id.toString().toUpperCase())
.indexOf(this.selected.toString().toUpperCase());
}

onChange(e) {
Expand Down

0 comments on commit 9a134b5

Please sign in to comment.