Browse Source

#2259 - Fix get selection value returns 1 when null

pull/2300/head
jlukic 9 years ago
parent
commit
01e9f39242
1 changed files with 4 additions and 2 deletions
  1. 6
      src/definitions/modules/dropdown.js

6
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

Loading…
Cancel
Save