From 3a2d3daf7a50b6ff77a5b095bc8e7aba7c213ce4 Mon Sep 17 00:00:00 2001 From: jlukic Date: Tue, 30 Sep 2014 15:55:43 -0400 Subject: [PATCH] Fixes #1123 Issue with 0 value not using strict matching --- src/definitions/modules/dropdown.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/definitions/modules/dropdown.js b/src/definitions/modules/dropdown.js index b67cf879b..0f7eea6ec 100755 --- a/src/definitions/modules/dropdown.js +++ b/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 ) {