FIX: Update user-selector excluded usernames after insert (#8711)

This commit is contained in:
Mark VanLandingham
2020-01-14 10:28:35 -06:00
committed by GitHub
parent c351ffe580
commit 5df0ef1e98

View File

@ -60,8 +60,7 @@ export default TextField.extend({
allowAny = bool("allowAny"),
disabled = bool("disabled"),
allowEmails = bool("allowEmails"),
fullWidthWrap = bool("fullWidthWrap"),
excludedUsernames = this.excludedUsernames || [];
fullWidthWrap = bool("fullWidthWrap");
const allExcludedUsernames = () => {
// hack works around some issues with allowAny eventing
@ -71,7 +70,7 @@ export default TextField.extend({
usernames.concat([currentUser.username]);
}
return usernames.concat(excludedUsernames);
return usernames.concat(this.excludedUsernames || []);
};
this.element.addEventListener("paste", this._paste);