Fix Card onPress event

Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com>
This commit is contained in:
Charles de Dreuille
2026-03-13 17:07:52 +00:00
parent 7f84d53161
commit fcaac3b8bd
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,