Merge pull request #33475 from DefinitelyTyped/cleanup-awesomplete-this-reference

awesomeplete:  missed this reference
This commit is contained in:
Nathan Shively-Sanders
2019-02-28 10:07:53 -08:00
committed by GitHub

View File

@@ -46,7 +46,7 @@ new Awesomplete('input[data-multiple]', {
return Awesomplete.FILTER_CONTAINS(text, input.match(/[^,]*$/)[0]);
},
replace: (text: string) => {
replace(text: string) {
const before = this.input.value.match(/^.+,\s*|/)[0];
this.input.value = `${before}${text}, `;
}