Pasting usernames in PM invite or group list


(Patrick Klug) #1

Whenever I paste a username into a invite input field or group list, the forum suggests really odd search-results.

Example:

Pasting codinghorror into the invite field generates the following

I have no clue why these names show up. EDIT: Actually, it seems to take the V from Ctrl+V instead of the actual pasted content. It’s obviously incorrect. What’s worse is that hitting Return causes the first search result to be added, instead of the valid username that I just pasted.

This makes creating a group list based on a list of names really cumbersome as I have to manually type in every name for it to find the right user.


(Jeff Atwood) #2

@sam we should have a better behavior here on paste, since this is a reused component that works a bunch of places, right?


(Sam Saffron) #3

Fixed per:

https://github.com/discourse/discourse/commit/168c6904278992208c7b9edca3e0f421cbf3fa37


(Sam Saffron) #4