Only handle click on card when selection mode is ongoing (#17493)

This commit is contained in:
Nicolas Mowen 2025-04-01 16:23:12 -06:00 committed by GitHub
parent a6c8bcd878
commit 907283b9a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -623,7 +623,11 @@ function FaceAttemptGroup({
? "shadow-selected outline-selected"
: "outline-transparent duration-500",
)}
onClick={(e) => handleClickEvent(e.metaKey)}
onClick={() => {
if (selectedFaces.length) {
handleClickEvent(true);
}
}}
onContextMenu={(e) => {
e.stopPropagation();
e.preventDefault();