From b2223ef60645c52ffb5bd99bb0ace3575d6d4428 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sat, 4 Apr 2026 20:13:51 +0200 Subject: [PATCH] Update face chip click handler to set whitebox selection mode --- src/app/App.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/app/App.tsx b/src/app/App.tsx index 2c056be9..2c002aa8 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -6950,7 +6950,8 @@ export function App({ store, initialStatusMessage }: AppProps) { type="button" data-testid={`face-button-${faceId}`} className={`face-chip ${isBrushFaceSelected(editorState.selection, selectedBrush.id, faceId) ? "face-chip--active" : ""}`} - onClick={() => + onClick={() => { + store.setWhiteboxSelectionMode("face"); applySelection( { kind: "brushFace", @@ -6958,8 +6959,8 @@ export function App({ store, initialStatusMessage }: AppProps) { faceId }, "inspector" - ) - } + ); + }} > {BOX_FACE_LABELS[faceId]} {faceId}