Commit 0f9df6d 1 parent 2d30e44 commit 0f9df6d Copy full SHA for 0f9df6d
File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -344,10 +344,13 @@ $.fn.dropdown = function(parameters) {
344
344
? module . get . value ( )
345
345
: module . get . text ( )
346
346
;
347
- strict = ( value === '' )
348
- ? true
349
- : strict || false
350
- ;
347
+ if ( strict === undefined && value === '' ) {
348
+ module . debug ( 'Ambiguous dropdown value using strict type check' , value ) ;
349
+ strict = true ;
350
+ }
351
+ else {
352
+ strict = strict || false ;
353
+ }
351
354
if ( value !== undefined ) {
352
355
$item
353
356
. each ( function ( ) {
@@ -363,7 +366,6 @@ $.fn.dropdown = function(parameters) {
363
366
: optionText
364
367
;
365
368
if ( strict ) {
366
- module . debug ( 'Ambiguous dropdown value using strict type check' , value ) ;
367
369
if ( optionValue === value ) {
368
370
$selectedItem = $ ( this ) ;
369
371
}
You can’t perform that action at this time.
0 commit comments