diff --git a/browser/src/control/Control.UserList.ts b/browser/src/control/Control.UserList.ts index 5eec3dffce9c4..e7c4692604103 100644 --- a/browser/src/control/Control.UserList.ts +++ b/browser/src/control/Control.UserList.ts @@ -593,5 +593,5 @@ L.control.createUserListWidget = function () { // TODO: this is not interactive const userlistElement = L.DomUtil.create('div'); app.map.userList.renderHeaderAvatarPopover(userlistElement); - return userlistElement.outerHTML; + return userlistElement; };