From 01e9f39242d4afa8a8b738ee060dbe750c6ce78e Mon Sep 17 00:00:00 2001 From: jlukic Date: Fri, 15 May 2015 17:27:59 -0400 Subject: [PATCH] #2259 - Fix get selection value returns 1 when null --- src/definitions/modules/dropdown.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/definitions/modules/dropdown.js b/src/definitions/modules/dropdown.js index 431b6df43..c60cb6465 100644 --- a/src/definitions/modules/dropdown.js +++ b/src/definitions/modules/dropdown.js @@ -1318,8 +1318,10 @@ $.fn.dropdown = function(parameters) { var values = module.get.values() ; - return ( module.is.multiple() && $.isArray(values)) - ? values.length + return ( module.is.multiple() ) + ? $.isArray(values) + ? values.length + : 0 : (module.get.value() !== '') ? 1 : 0