Skip to content

Commit

Permalink
fix(dropdown): get item function now working properly with array of i…
Browse files Browse the repository at this point in the history
…ntegers
  • Loading branch information
natoli66 authored and lubber-de committed Jan 25, 2020
1 parent 4238b78 commit 2930de5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/definitions/modules/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -2075,7 +2075,7 @@ $.fn.dropdown = function(parameters) {
return;
}
if(isMultiple) {
if($.inArray(module.escape.htmlEntities(String(optionValue)), value) !== -1) {
if($.inArray(module.escape.htmlEntities(String(optionValue)), value.map(function(v){return String(v);})) !== -1) {
$selectedItem = ($selectedItem)
? $selectedItem.add($choice)
: $choice
Expand Down

0 comments on commit 2930de5

Please sign in to comment.