Skip to content

Commit 82d61cd

Browse files
committed
Docs-and-build.
1 parent 07fc415 commit 82d61cd

File tree

6 files changed

+13
-11
lines changed

6 files changed

+13
-11
lines changed

dist/cjs.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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

dist/es6.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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

dist/es7.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)