From 8fb6ab61bae46ca33dd7296b930df1539e615d9d Mon Sep 17 00:00:00 2001 From: Andrew Henry Date: Wed, 28 Oct 2015 14:56:34 -0700 Subject: [PATCH] Fixed folders --- platform/representation/src/gestures/DropGesture.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/representation/src/gestures/DropGesture.js b/platform/representation/src/gestures/DropGesture.js index e013764e2a..d3f8f3cf64 100644 --- a/platform/representation/src/gestures/DropGesture.js +++ b/platform/representation/src/gestures/DropGesture.js @@ -80,7 +80,8 @@ define( function dragOver(e) { //Refresh domain object on each dragOver to catch external // updates to the model - editableDomainObject = domainObject instanceof EditableDomainObject ? domainObject : new EditableDomainObject(domainObject, $q); + //Don't use EditableDomainObject for folders, allow immediate persistence + editableDomainObject = domainObject instanceof EditableDomainObject || domainObject.getModel().type==='folder' ? domainObject : new EditableDomainObject(domainObject, $q); actionCapability = editableDomainObject.getCapability('action'); var event = (e || {}).originalEvent || e,