Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit 406ff2a

Browse files
committed
Fix for issue #25
* Added logic to set the selected item when source is an array.
1 parent 7a03b75 commit 406ff2a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jquery.cascadingdropdown.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@
9696
response($.map(self.options.source, function(item) {
9797
return {
9898
label: item.label || item.value || item,
99-
value: item.value || item.label || item
99+
value: item.value || item.label || item,
100+
selected: item.selected
100101
};
101102
}));
102103
};

0 commit comments

Comments
 (0)