From 4832285053bf6a23392703fdccb3778e96e6df6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pierzcha=C5=82a?= Date: Tue, 13 Oct 2026 08:37:11 +0200 Subject: [PATCH] refactor(selectors): drop the narrating comment on isNodeEditable The comment restated the fallback and overstated the precedence: a disabled node is refused before the editable fact is read. The selectors docs state the rule. Co-Authored-By: Claude Opus 5.5 --- packages/selectors/src/internal/node.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/selectors/src/internal/node.ts b/packages/selectors/src/internal/node.ts index 83b68ae6c3..c9297e5308 100644 --- a/packages/selectors/src/internal/node.ts +++ b/packages/selectors/src/internal/node.ts @@ -8,7 +8,6 @@ export function isNodeVisible(node: SnapshotNode): boolean { return node.rect.width > 0 && node.rect.height > 0; } -/** A published `editable` fact decides; the type inference applies only when the fact is absent. */ export function isNodeEditable(node: SnapshotNode, platform: Platform | PublicPlatform): boolean { if (node.enabled === false) return false; return node.editable ?? isFillableType(node.type ?? '', platform);