Skip to content

Commit b8b72dd

Browse files
authored
Content Type Designer: Fix to prevent dragging inherited properties (#20136)
do not drag inherited properties
1 parent 04cf97b commit b8b72dd

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/Umbraco.Web.UI.Client/src/packages/content/content-type/workspace/views/design/content-type-design-editor-properties.element.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const SORTER_CONFIG: UmbSorterConfig<UmbPropertyTypeModel, UmbContentTypeDesignE
3333
},
3434
identifier: 'content-type-property-sorter',
3535
itemSelector: 'umb-content-type-design-editor-property',
36-
//disabledItemSelector: '[inherited]',
36+
disabledItemSelector: '[_inherited]',
3737
//TODO: Set the property list (sorter wrapper) to inherited, if its inherited
3838
// This is because we don't want to move local properties into an inherited group container.
3939
// Or maybe we do, but we still need to check if the group exists locally, if not, then it needs to be created before we move a property into it.
@@ -188,11 +188,6 @@ export class UmbContentTypeDesignEditorPropertiesElement extends UmbLitElement {
188188
context?.isSorting,
189189
(isSorting) => {
190190
this._sortModeActive = isSorting;
191-
if (isSorting) {
192-
//this.#sorter.enable();
193-
} else {
194-
//this.#sorter.disable();
195-
}
196191
},
197192
'_observeIsSorting',
198193
);

0 commit comments

Comments
 (0)