mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-11 12:40:15 +00:00
Merge pull request #33475 from DefinitelyTyped/cleanup-awesomplete-this-reference
awesomeplete: missed this reference
This commit is contained in:
@@ -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}, `;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user