Describe the bug
When you're adding a jid to your roster, in the modal window, you assign it a nickname and can also add it to a group of contacts. If the group is already existent, it pops up over the input box like a suggestion - fine, so far. The problem is, if you click with the mouse to select that existing group, converse writes it with a trailing "space" character and if you don't pay attention and remove it, the saved group will be different/wrong from what you expected.
To Reproduce
Steps to reproduce the behavior:
- Go to Contacts hamburger menu
- Click on "Add a contact"
- Start typing the name of an already existent group
- When the group shows up, click on it with the mouse
- See the problem. Added group has a trailing "space" character
Expected behavior
No space added to group, when selecting it from autocomplete
Environment (please complete the following information):
- Desktop
- Browser [Chrome on Windows, latest and greatest]
- Converse.js version [11.0.1]
Describe the bug
When you're adding a jid to your roster, in the modal window, you assign it a nickname and can also add it to a group of contacts. If the group is already existent, it pops up over the input box like a suggestion - fine, so far. The problem is, if you click with the mouse to select that existing group, converse writes it with a trailing "space" character and if you don't pay attention and remove it, the saved group will be different/wrong from what you expected.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No space added to group, when selecting it from autocomplete
Environment (please complete the following information):