File tree Expand file tree Collapse file tree 6 files changed +13
-11
lines changed
Expand file tree Collapse file tree 6 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,8 @@ function _finally(body, finalizer) {
9999 } if ( result && result . then ) {
100100 return result . then ( void 0 , recover ) ;
101101 } return result ;
102- } function _invokeIgnored ( body ) {
102+ }
103+ function _invokeIgnored ( body ) {
103104 var result = body ( ) ; if ( result && result . then ) {
104105 return result . then ( _empty ) ;
105106 }
@@ -506,13 +507,13 @@ var VueSimpleSuggest = {
506507
507508 var value = arguments . length > 0 && arguments [ 0 ] !== undefined ? arguments [ 0 ] : '' ;
508509
509- if ( _this5 . listShown && ! value ) {
510+ if ( _this5 . listShown && ! value && _this5 . minLength > 0 ) {
510511 _this5 . hideList ( ) ;
511512 _this5 . clearSuggestions ( ) ;
512513 return _this5 . suggestions ;
513514 }
514515
515- if ( _this5 . minLength > 0 && value . length < _this5 . minLength ) {
516+ if ( value . length < _this5 . minLength ) {
516517 return _this5 . suggestions ;
517518 }
518519
Original file line number Diff line number Diff line change @@ -83,7 +83,8 @@ function _finally(body, finalizer) {
8383 } if ( result && result . then ) {
8484 return result . then ( void 0 , recover ) ;
8585 } return result ;
86- } function _invokeIgnored ( body ) {
86+ }
87+ function _invokeIgnored ( body ) {
8788 var result = body ( ) ; if ( result && result . then ) {
8889 return result . then ( _empty ) ;
8990 }
@@ -472,13 +473,13 @@ var VueSimpleSuggest = {
472473 getSuggestions : _async ( function ( value = '' ) {
473474 var _this3 = this ;
474475
475- if ( _this3 . listShown && ! value ) {
476+ if ( _this3 . listShown && ! value && _this3 . minLength > 0 ) {
476477 _this3 . hideList ( ) ;
477478 _this3 . clearSuggestions ( ) ;
478479 return _this3 . suggestions ;
479480 }
480481
481- if ( _this3 . minLength > 0 && value . length < _this3 . minLength ) {
482+ if ( value . length < _this3 . minLength ) {
482483 return _this3 . suggestions ;
483484 }
484485
Original file line number Diff line number Diff line change @@ -400,13 +400,13 @@ var VueSimpleSuggest = {
400400 }
401401 } ,
402402 async getSuggestions ( value = '' ) {
403- if ( this . listShown && ! value ) {
403+ if ( this . listShown && ! value && this . minLength > 0 ) {
404404 this . hideList ( ) ;
405405 this . clearSuggestions ( ) ;
406406 return this . suggestions ;
407407 }
408408
409- if ( this . minLength > 0 && value . length < this . minLength ) {
409+ if ( value . length < this . minLength ) {
410410 return this . suggestions ;
411411 }
412412
You can’t perform that action at this time.
0 commit comments