mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-01 17:14:58 -05:00
feat(ui): make drop targets that are in root sticky
This commit is contained in:
@@ -551,6 +551,7 @@ export const useDraggableFormElement = (
|
||||
}),
|
||||
dropTargetForElements({
|
||||
element: draggableElement,
|
||||
getIsSticky: () => getElement(elementId).parentId === undefined,
|
||||
canDrop: ({ source }) =>
|
||||
isFormElementDndData(source.data) && source.data.element.id !== getElement(elementId).parentId,
|
||||
getData: ({ input }) => {
|
||||
|
||||
Reference in New Issue
Block a user