Browse Source

Fixes #1123 Issue with 0 value not using strict matching

pull/1129/head
jlukic 10 years ago
parent
commit
3a2d3daf7a
1 changed files with 2 additions and 1 deletions
  1. 3
      src/definitions/modules/dropdown.js

3
src/definitions/modules/dropdown.js

@ -672,7 +672,7 @@ $.fn.dropdown = function(parameters) {
? module.get.value()
: module.get.text()
;
strict = (value === '')
strict = (value === '' || value === 0)
? true
: strict || false
;
@ -692,6 +692,7 @@ $.fn.dropdown = function(parameters) {
? optionText.toLowerCase()
: optionText
;
console.log(strict, optionValue, value);
if(strict) {
module.debug('Ambiguous dropdown value using strict type check', value);
if( optionValue === value ) {

Loading…
Cancel
Save