From 2930de5137471b74b3a6baefd5384dbcde55c7b7 Mon Sep 17 00:00:00 2001 From: Anthony Natoli Date: Sat, 25 Jan 2020 19:25:10 +0100 Subject: [PATCH] fix(dropdown): get item function now working properly with array of integers --- src/definitions/modules/dropdown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/definitions/modules/dropdown.js b/src/definitions/modules/dropdown.js index 19251ebdc5..a418a9b620 100644 --- a/src/definitions/modules/dropdown.js +++ b/src/definitions/modules/dropdown.js @@ -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