@evergis/uilib-gl 1.0.96 → 1.0.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/uilib-gl.esm.js
CHANGED
|
@@ -24583,11 +24583,12 @@ const DraggableTree = _ref => {
|
|
|
24583
24583
|
onDragOver: () => setDraggingOverId(placeholderId),
|
|
24584
24584
|
onDragEnd: onDragEnd
|
|
24585
24585
|
}), ...treeNodes.map((node, nodeIndex) => {
|
|
24586
|
+
const isNodeDragDisabled = disableDrag || node.disableDrag;
|
|
24586
24587
|
return React.createElement(Fragment, {
|
|
24587
24588
|
key: `fragment-${nodeIndex}-${node.id}`
|
|
24588
24589
|
}, React.createElement(DraggableTreeItem, {
|
|
24589
24590
|
key: `node-${nodeIndex}-${node.id}`,
|
|
24590
|
-
draggable: !
|
|
24591
|
+
draggable: !isNodeDragDisabled,
|
|
24591
24592
|
level: level,
|
|
24592
24593
|
treeOptions: options,
|
|
24593
24594
|
isFolder: Boolean(node.children),
|