@brightspace-ui/core 1.242.0 → 1.242.1
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.
|
@@ -679,8 +679,13 @@ export const ListItemDragDropMixin = superclass => class extends superclass {
|
|
|
679
679
|
const invalidDropTarget = dragState.dragTargets.find(dragTarget => {
|
|
680
680
|
return isComposedAncestor(dragTarget, this);
|
|
681
681
|
});
|
|
682
|
+
|
|
682
683
|
if (invalidDropTarget) return;
|
|
683
684
|
|
|
685
|
+
// assert that both the source and target are from the same list - may allow this in the future
|
|
686
|
+
const targetRoot = dragState.dragTargets[0] && dragState.dragTargets[0]._getRootList();
|
|
687
|
+
if (this._getRootList() !== targetRoot) return;
|
|
688
|
+
|
|
684
689
|
dragState.addDropTarget(this);
|
|
685
690
|
this._draggingOver = true;
|
|
686
691
|
e.dataTransfer.dropEffect = 'move';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "1.242.
|
|
3
|
+
"version": "1.242.1",
|
|
4
4
|
"description": "A collection of accessible, free, open-source web components for building Brightspace applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": "https://github.com/BrightspaceUI/core.git",
|