Skip to content

Unable to change channels in Edge using the web client. #12809

@TkTech

Description

@TkTech

Description:

Changing channels will always fail in almost all builds of Microsoft Edge. The culprit is this line when exiting a room:

return [...mainNode.children].forEach((child) => {

In every browser but Edge this will work fine, however in Edge you can't use the spread operator with a NodeList in certain edge (hah) cases. You can try it for yourself, open rocket chat, open the console, and paste in:

const e=document.querySelector(".main-content");
[...e.children]

In Edge you'll get a "function expected", in all other browsers it will work. Replace [...e.children] with Array.from(e.children) and it should work as expected in all browsers.

Steps to reproduce:

  1. Join an RC server.
  2. Click on a channel
  3. Click on a different channel

Metadata

Metadata

Assignees

Labels

area: ui/uxRelated to UI/UX, frontend code, accessibility, and user interactiontype: bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions