mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 13:06:56 +08:00
FIX: Update user-selector excluded usernames after insert (#8711)
This commit is contained in:

committed by
GitHub

parent
c351ffe580
commit
5df0ef1e98
@ -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);
|
||||
|
Reference in New Issue
Block a user