diff --git a/src/facilities/incubator/incubatorInteract.js b/src/facilities/incubator/incubatorInteract.js index 54ff1d4c5c97e137488bcebcf37c60afbd7e417b..76553d603cf9c85b4a106c1d84952c517b694a7b 100644 --- a/src/facilities/incubator/incubatorInteract.js +++ b/src/facilities/incubator/incubatorInteract.js @@ -436,10 +436,10 @@ App.UI.incubator = function() { } /** - * @returns {HTMLElement} + * @returns {DocumentFragment} */ function sortingBarFunc(sortingOptions) { - const el = document.createElement("span"); + const el = new DocumentFragment(); App.UI.DOM.appendNewElement("span", el, "Sorting: ", "note"); const linkArray = []; for (const [title, func] of sortingOptions) {