Skip to content

contact's group name is altered when selecting it with the mouse from autocomplete #3710

@roughnecks

Description

@roughnecks

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:

  1. Go to Contacts hamburger menu
  2. Click on "Add a contact"
  3. Start typing the name of an already existent group
  4. When the group shows up, click on it with the mouse
  5. 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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions