From 0aa176e6e90a40fe2a600188e48b621270f991c9 Mon Sep 17 00:00:00 2001 From: Ben Henning Date: Thu, 20 Nov 2025 17:41:49 -0800 Subject: [PATCH] fix: Remove clickable images from block summary. (#9480) --- core/block_svg.ts | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/core/block_svg.ts b/core/block_svg.ts index 133fc6096..d312f418a 100644 --- a/core/block_svg.ts +++ b/core/block_svg.ts @@ -33,6 +33,7 @@ import {BlockDragStrategy} from './dragging/block_drag_strategy.js'; import type {BlockMove} from './events/events_block_move.js'; import {EventType} from './events/type.js'; import * as eventUtils from './events/utils.js'; +import {FieldImage} from './field_image.js'; import {FieldLabel} from './field_label.js'; import {getFocusManager} from './focus_manager.js'; import {IconType} from './icons/icon_types.js'; @@ -2059,15 +2060,22 @@ function buildBlockSummary(block: BlockSvg): BlockSummary { ): string { return block.inputList .flatMap((input) => { - const fields = input.fieldRow.map((field) => { - if (!field.isVisible()) return []; - // If the block is a full block field, we only want to know if it's an - // editable field if we're not directly on it. - if (field.EDITABLE && !field.isFullBlockField() && !isNestedInput) { - inputCount++; - } - return [field.getText() ?? field.getValue()]; - }); + const fields = input.fieldRow + .filter((field) => { + if (!field.isVisible()) return false; + if (field instanceof FieldImage && field.isClickable()) { + return false; + } + return true; + }) + .map((field) => { + // If the block is a full block field, we only want to know if it's an + // editable field if we're not directly on it. + if (field.EDITABLE && !field.isFullBlockField() && !isNestedInput) { + inputCount++; + } + return [field.getText() ?? field.getValue()]; + }); if ( input.isVisible() && input.connection &&