-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Unable to change channels in Edge using the web client. #12809
Copy link
Copy link
Closed
Labels
area: ui/uxRelated to UI/UX, frontend code, accessibility, and user interactionRelated to UI/UX, frontend code, accessibility, and user interactiontype: bug
Milestone
Description
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:
- Join an RC server.
- Click on a channel
- Click on a different channel
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area: ui/uxRelated to UI/UX, frontend code, accessibility, and user interactionRelated to UI/UX, frontend code, accessibility, and user interactiontype: bug