diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/blocklist/umbBlockListPropertyEditor.component.js b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/blocklist/umbBlockListPropertyEditor.component.js index 66c6d92d28..4ae0a90390 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/blocklist/umbBlockListPropertyEditor.component.js +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/blocklist/umbBlockListPropertyEditor.component.js @@ -235,7 +235,6 @@ function editBlock(blockObject, openSettings) { var wasNotActiveBefore = blockObject.active !== true; - activateBlock(blockObject); // dont open the editor overlay if block has hidden its content editor in overlays and we are requesting to open content, not settings. if (openSettings !== true && blockObject.hideContentInOverlay === true) { @@ -243,10 +242,12 @@ } // if requesting to open settings but we dont have settings then return. - if (openSettings === true && blockObject.config.settingsElementTypeKey) { + if (openSettings === true && !blockObject.config.settingsElementTypeKey) { return; } + activateBlock(blockObject); + // make a clone to avoid editing model directly. var blockContentClone = Utilities.copy(blockObject.content); var blockSettingsClone = null; @@ -341,7 +342,11 @@ if(!(mouseEvent.ctrlKey || mouseEvent.metaKey)) { editorService.close(); if (added && vm.layout.length > createIndex) { - editBlock(vm.layout[createIndex].$block); + if (inlineEditing === true) { + activateBlock(vm.layout[createIndex].$block); + } else if (inlineEditing === false && vm.layout[createIndex].$block.hideContentInOverlay !== true) { + editBlock(vm.layout[createIndex].$block); + } } } },