diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/util/isolateform.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/util/isolateform.directive.js new file mode 100644 index 0000000000..62aa772fb3 --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/common/directives/util/isolateform.directive.js @@ -0,0 +1,10 @@ +angular.module("umbraco.directives") + .directive('isolateForm', function ($window, $timeout, windowResizeListener) { + return { + restrict: 'A', + require: ['form', '^form'], + link: function(scope, element, attrs, forms) { + forms[1].$removeControl(forms[0]); + } + } + }); diff --git a/src/Umbraco.Web.UI.Client/src/views/components/upload/umb-file-dropzone.html b/src/Umbraco.Web.UI.Client/src/views/components/upload/umb-file-dropzone.html index 03d1a84908..f38a66ef29 100644 --- a/src/Umbraco.Web.UI.Client/src/views/components/upload/umb-file-dropzone.html +++ b/src/Umbraco.Web.UI.Client/src/views/components/upload/umb-file-dropzone.html @@ -1,6 +1,6 @@
- +