Ich versuche gerade UiSortableList zu implementieren, erhalte aber folgenden Fehler:
Code
Uncaught TypeError: Cannot read properties of undefined (reading 'left')
at $.<computed>.<computed>.refreshPositions (jquery-ui.js?v=1657507762:5752:18)
at $.<computed>.<computed>.<anonymous> (jquery-ui.js?v=1657507762:144:25)
at $.<computed>.<computed>.refreshPositions (jquery-ui.js?v=1657507762:144:25)
at $.<computed>.<computed>.refresh (jquery-ui.js?v=1657507762:5601:8)
at $.<computed>.<computed>.<anonymous> (jquery-ui.js?v=1657507762:144:25)
at $.<computed>.<computed>.refresh (jquery-ui.js?v=1657507762:144:25)
at $.<computed>.<computed>._create (jquery-ui.js?v=1657507762:4998:8)
at $.<computed>.<computed>.<anonymous> (jquery-ui.js?v=1657507762:144:25)
at $.<computed>.<computed>._create (nestedSortable.js?v=1657507762:37:43)
at $.<computed>.<computed>._create (jquery-ui.js?v=1657507762:144:25)
at $.<computed>.<computed>._createWidget (jquery-ui.js?v=1657507762:341:8)
at $.<computed>.<computed>._createWidget (jquery-ui.js?v=1657507762:144:25)
at new $.<computed>.<computed> (jquery-ui.js?v=1657507762:99:9)
at HTMLUListElement.<anonymous> (jquery-ui.js?v=1657507762:281:30)
at Function.each (jquery.js?v=1657507762:360:19)
at jQuery.fn.init.each (jquery.js?v=1657507762:194:17)
at $.fn.<computed> [as nestedSortable] (jquery-ui.js?v=1657507762:273:9)
at g.init (WCF.js?v=1657507762:6620:18)
at new g (WCF.Assets.js?v=1657507762:7:162)
at UiSortableList._enable (List.js?t=1657507762:46:13)
at Object.setup (List.js?t=1657507762:35:35)
at Object.on (Screen.js?t=1657507762:59:27)
at new UiSortableList (List.js?t=1657507762:32:22)
at (index):3479:13
Display More
Der genutzte Code ist folgender:
Code
new UiSortableList({
containerId: id, // id ist dynamisch
options: {
toleranceElement: '> div',
listType: 'ul'
}
});
Das HTML-Markup sieht so aus:
Code
<div class="formUploadHandlerContent sortableListContainer" id="wcf2">
<ul class="formUploadHandlerList sortableList">
<li class="box64 uploadedFile sortableNode">
<a href="">...</a>
<div>...</div>
</li>
...
</ul>
</div>
Jemand eine Idee?
Hinweis: Das ganze befindet sich in einem FormBuilder, welche mehrere Tabs besitzt.