Merge pull request #33343 from backstage/fix-card-press

Fix Card onPress event
This commit is contained in:
Charles de Dreuille
2026-03-13 17:31:44 +00:00
committed by GitHub
2 changed files with 8 additions and 1 deletions
+7
View File
@@ -0,0 +1,7 @@
---
'@backstage/ui': patch
---
Fixed `Card` interactive cards not firing the `onPress` handler when clicking the card surface.
**Affected components**: Card
+1 -1
View File
@@ -77,7 +77,7 @@ export const Card = forwardRef<HTMLDivElement, CardProps>((props, ref) => {
triggerRef.current.dispatchEvent(
new MouseEvent('click', {
bubbles: false,
bubbles: true,
cancelable: true,
ctrlKey: e.ctrlKey,
metaKey: e.metaKey,