Skip to content

Commit

Permalink
[desk-tool] Use onEscape in document action menus
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuslundgard authored and rexxars committed Oct 6, 2020
1 parent d32e54a commit 30566e9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ export function ActionStateDialog(props: Props) {
hasAnimation
onAction={handleDialogAction}
onClickOutside={dialog.onCancel}
onEscape={dialog.onCancel}
placement="auto-end"
referenceElement={referenceElement}
size="small"
Expand Down Expand Up @@ -127,6 +128,7 @@ export function ActionStateDialog(props: Props) {
return (
<PopoverDialog
onClickOutside={dialog.onClose}
onEscape={dialog.onClose}
placement="auto-end"
useOverlay={false}
hasAnimation
Expand Down

0 comments on commit 30566e9

Please sign in to comment.