Skip to content

Commit

Permalink
Bugfix research method
Browse files Browse the repository at this point in the history
  • Loading branch information
garsaud committed Jun 8, 2021
1 parent ed6ab22 commit a04dd3b
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 16 deletions.
5 changes: 2 additions & 3 deletions dist/cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -626,9 +626,8 @@ function _empty() {}function _awaitIgnored(value, direct) {
// @TODO: fix when promises will be cancelable (never :D)
var textBeforeRequest = _this10.text;
return _await(_this10.getSuggestions(_this10.text), function (newList) {
if (textBeforeRequest === _this10.text) {
_this10.$set(_this10, 'suggestions', newList);
}

_this10.$set(_this10, 'suggestions', newList);
});
}
});
Expand Down
5 changes: 2 additions & 3 deletions dist/es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -592,9 +592,8 @@ function _empty() {}function _awaitIgnored(value, direct) {
// @TODO: fix when promises will be cancelable (never :D)
let textBeforeRequest = _this3.text;
return _await(_this3.getSuggestions(_this3.text), function (newList) {
if (textBeforeRequest === _this3.text) {
_this3.$set(_this3, 'suggestions', newList);
}

_this3.$set(_this3, 'suggestions', newList);
});
}
});
Expand Down
4 changes: 1 addition & 3 deletions dist/es7.js
Original file line number Diff line number Diff line change
Expand Up @@ -535,9 +535,7 @@ var VueSimpleSuggest = {
let textBeforeRequest = this.text;
let newList = await this.getSuggestions(this.text);

if (textBeforeRequest === this.text) {
this.$set(this, 'suggestions', newList);
}
this.$set(this, 'suggestions', newList);
}
} catch (e) {
this.clearSuggestions();
Expand Down
2 changes: 1 addition & 1 deletion dist/iife.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/umd.js

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions lib/vue-simple-suggest.vue
Original file line number Diff line number Diff line change
Expand Up @@ -572,9 +572,7 @@ export default {
let textBeforeRequest = this.text
let newList = await this.getSuggestions(this.text)
if (textBeforeRequest === this.text) {
this.$set(this, 'suggestions', newList)
}
this.$set(this, 'suggestions', newList)
}
}
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vue-simple-suggest",
"description": "Feature-rich autocomplete component for Vue.js",
"version": "1.11.0-jurihub",
"version": "1.11.1-jurihub",
"author": "KazanExpress",
"license": "MIT",
"repository": "jurihub/vue-simple-suggest",
Expand Down

0 comments on commit a04dd3b

Please sign in to comment.