From d7f48813c8b7d67e63d493872b9924c59986ae96 Mon Sep 17 00:00:00 2001 From: Dominik Moritz Date: Thu, 16 Jul 2026 17:02:20 -0400 Subject: [PATCH] fix: fix regression with toggle selection in legends fixes #1080 --- packages/vgplot/plot/src/legend.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/vgplot/plot/src/legend.js b/packages/vgplot/plot/src/legend.js index f01763ffd..af69ad816 100644 --- a/packages/vgplot/plot/src/legend.js +++ b/packages/vgplot/plot/src/legend.js @@ -137,7 +137,11 @@ function interactorMark(legend) { const field = legend.field ?? findField(plot.marks, channel) ?? 'value'; if (field) { const f = { field }; - return { plot, channelField: c => channel === c ? f : undefined }; + return { + plot, + channelField: c => channel === c ? f : undefined, + isUnnested: () => false + }; } }