Skip to content

Commit

Permalink
fix(Popover): popover content now closes on ESC key press
Browse files Browse the repository at this point in the history
  • Loading branch information
sarkaaa committed Dec 19, 2024
1 parent 96d57b0 commit 7e5c738
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/orbit-components/src/Popover/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ const Popover = ({
setRenderWithTimeout(false);
resolveCallback(false);
} else if (onClose) onClose();
} else {
setShown(false);
}
},
[clearShownTimeout, onClose, opened, resolveCallback, setRenderWithTimeout, setShown],
Expand Down

0 comments on commit 7e5c738

Please sign in to comment.