Skip to content

Commit

Permalink
Fix for issue #25
Browse files Browse the repository at this point in the history
* Added logic to set the selected item when source is an array.
  • Loading branch information
dnasir committed Mar 4, 2014
1 parent 7a03b75 commit 406ff2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jquery.cascadingdropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@
response($.map(self.options.source, function(item) {
return {
label: item.label || item.value || item,
value: item.value || item.label || item
value: item.value || item.label || item,
selected: item.selected
};
}));
};
Expand Down

0 comments on commit 406ff2a

Please sign in to comment.