processone / ejabberd

Robust, Ubiquitous and Massively Scalable Messaging Platform (XMPP, MQTT, SIP Server)
https://www.process-one.net/en/ejabberd/
Other
6.01k stars 1.5k forks source link

Web Admin: Hitting enter on the "View Roster" page removes a contact. #4067

Closed egnun closed 11 months ago

egnun commented 12 months ago

Environment

Bug description

When I'm in the "Web Admin" interface and I go to "Users" > choose a user > "View Roster". When I then enter a JID there in the add contact field and press enter, it removes one of the already existing contacts. So to be able to add a contact there, I have to manually press the button "Add Jabber-ID".

Expected behaviour: In general just pressing enter on that page, shouldn't remove a contact. When the cursor is focused on the input field, pressing enter should add a contact.

Neustradamus commented 11 months ago

@egnun: Have you seen the @badlop commit?

egnun commented 11 months ago

Looks good? I don't really speak Erlang. ;-) But thanks for fixing this, @badlop.

You can close this issue on your own accord.