Skip to content

Commit

Permalink
fix(ActionsMenu): Now force autofocus on first item for better a11y
Browse files Browse the repository at this point in the history
  • Loading branch information
JF-Cozy committed Jun 20, 2023
1 parent c30e183 commit 4264903
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions react/ActionsMenu/ActionsItems.jsx
Expand Up @@ -32,6 +32,7 @@ const ActionsItems = forwardRef(
ref={ref}
key={actionName + idx}
doc={doc}
autoFocus={idx === 0}
disabled={disabled}
onClick={handleClick}
/>
Expand Down

0 comments on commit 4264903

Please sign in to comment.