Update face chip click handler to set whitebox selection mode
This commit is contained in:
@@ -6950,7 +6950,8 @@ export function App({ store, initialStatusMessage }: AppProps) {
|
|||||||
type="button"
|
type="button"
|
||||||
data-testid={`face-button-${faceId}`}
|
data-testid={`face-button-${faceId}`}
|
||||||
className={`face-chip ${isBrushFaceSelected(editorState.selection, selectedBrush.id, faceId) ? "face-chip--active" : ""}`}
|
className={`face-chip ${isBrushFaceSelected(editorState.selection, selectedBrush.id, faceId) ? "face-chip--active" : ""}`}
|
||||||
onClick={() =>
|
onClick={() => {
|
||||||
|
store.setWhiteboxSelectionMode("face");
|
||||||
applySelection(
|
applySelection(
|
||||||
{
|
{
|
||||||
kind: "brushFace",
|
kind: "brushFace",
|
||||||
@@ -6958,8 +6959,8 @@ export function App({ store, initialStatusMessage }: AppProps) {
|
|||||||
faceId
|
faceId
|
||||||
},
|
},
|
||||||
"inspector"
|
"inspector"
|
||||||
)
|
);
|
||||||
}
|
}}
|
||||||
>
|
>
|
||||||
<span className="face-chip__title">{BOX_FACE_LABELS[faceId]}</span>
|
<span className="face-chip__title">{BOX_FACE_LABELS[faceId]}</span>
|
||||||
<span className="face-chip__meta">{faceId}</span>
|
<span className="face-chip__meta">{faceId}</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user