Przeglądaj źródła

execute clickHandler on key down when selected with tab

Futa Arai 9 miesięcy temu
rodzic
commit
52ab9c7121
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      packages/ui/src/components/UserPicture.tsx

+ 1 - 1
packages/ui/src/components/UserPicture.tsx

@@ -72,7 +72,7 @@ const UserPictureRootWithLink = forwardRef<
       ref={ref}
       ref={ref}
       className={props.className}
       className={props.className}
       onClick={clickHandler}
       onClick={clickHandler}
-      onKeyDown={() => {}}
+      onKeyDown={clickHandler}
       style={{ cursor: 'pointer' }}
       style={{ cursor: 'pointer' }}
       role="link"
       role="link"
       tabIndex={0}
       tabIndex={0}