Skip to content

Commit 5c05fd2

Browse files
NguyenThuyLanLan Nguyen Thuy
andauthored
Template with Block List field with Inline Editing Mode causes Collection List View to shrink (#19754)
Fix issue template is shrunk when enable inline editing mode in collection list view in block list field Co-authored-by: Lan Nguyen Thuy <[email protected]>
1 parent 6fe39b0 commit 5c05fd2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Umbraco.Web.UI.Client/src/packages/block/block/workspace/block-workspace.context.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,12 @@ export class UmbBlockWorkspaceContext<LayoutDataType extends UmbBlockLayoutBaseM
210210
this.observe(
211211
contentTypeId ? manager.blockTypeOf(contentTypeId) : undefined,
212212
(blockType) => {
213-
if (blockType?.editorSize) {
213+
if (!blockType?.editorSize) return;
214+
215+
const editorConfig = manager.getEditorConfiguration();
216+
const useInlineEditing = editorConfig?.find((x) => x.alias === 'useInlineEditingAsDefault')?.value;
217+
218+
if (!useInlineEditing) {
214219
this.setEditorSize(blockType.editorSize);
215220
}
216221
},

0 commit comments

Comments
 (0)