mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 18:30:26 -06:00
FIX: enter on invite to PM was broken
This commit is contained in:
parent
5a3466a6c3
commit
367d699247
@ -282,7 +282,7 @@ $.fn.autocomplete = function(options) {
|
||||
inputSelectedItems.push("");
|
||||
}
|
||||
|
||||
if(_.isString(inputSelectedItems[0])) {
|
||||
if(_.isString(inputSelectedItems[0]) && me.val().length > 0) {
|
||||
inputSelectedItems.pop();
|
||||
inputSelectedItems.push(me.val());
|
||||
if (options.onChangeItems) {
|
||||
|
Loading…
Reference in New Issue
Block a user