Skip to content

Commit

Permalink
(web-components) call click in button keydownHandler (microsoft#31428)
Browse files Browse the repository at this point in the history
  • Loading branch information
radium-v authored and miroslavstastny committed Jun 14, 2024
1 parent 7cd1e9f commit 6e55a99
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "Use click() instead of press() in button keydownHandler",
"packageName": "@fluentui/web-components",
"email": "[email protected]",
"dependentChangeType": "patch"
}
2 changes: 1 addition & 1 deletion packages/web-components/src/button/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ export class Button extends FASTElement {
}

if (e.key === keyEnter || e.key === keySpace) {
this.press();
this.click();
return;
}

Expand Down

0 comments on commit 6e55a99

Please sign in to comment.