Skip to content

Commit

Permalink
[components] Fix escape handler in PopoverDialog
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuslundgard authored and rexxars committed Oct 6, 2020
1 parent 534a307 commit 18739f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@sanity/components/src/dialogs/PopoverDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function PopoverDialog(props: PopoverDialogProps) {

const handleEscape = useCallback(
(event: KeyboardEvent) => {
if (event.shiftKey && onEscape) onEscape(event)
if (onEscape) onEscape(event)
},
[onEscape]
)
Expand Down

0 comments on commit 18739f0

Please sign in to comment.