Skip to content

Commit

Permalink
previous/default dropdown value not being set
Browse files Browse the repository at this point in the history
  • Loading branch information
cnizzardini committed Sep 13, 2019
1 parent 30cd8e3 commit 511aa53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webroot/js/yummy-search.js
Expand Up @@ -223,7 +223,7 @@
var option = document.createElement("option");
option.value = detail.items[ i ].value;
option.text = detail.items[ i ].text;
if (detail.prevValue === detail.items[ i ]) {
if (detail.prevValue === detail.items[ i ].value) {
option.selected = 'selected';
}
dropdown.appendChild(option);
Expand Down

0 comments on commit 511aa53

Please sign in to comment.