Skip to content

Commit

Permalink
Address code reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin940726 committed May 26, 2021
1 parent b98e4af commit 03ff8a4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/components/src/popover/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,6 @@ const Popover = (
{
headerTitle,
onClose,
onKeyDown,
children,
className,
noArrow = true,
Expand Down Expand Up @@ -505,7 +504,8 @@ const Popover = (
const mergedRefs = useMergeRefs( [
ref,
containerRef,
closeEventRef,
// Don't register the event at all if there's no onClose callback.
onClose ? closeEventRef : null,
focusOnMount ? constrainedTabbingRef : null,
focusOnMount ? focusReturnRef : null,
focusOnMount ? focusOnMountRef : null,
Expand Down Expand Up @@ -595,7 +595,6 @@ const Popover = (
}
) }
{ ...contentProps }
onKeyDown={ onKeyDown }
{ ...focusOutsideProps }
ref={ mergedRefs }
tabIndex="-1"
Expand Down

0 comments on commit 03ff8a4

Please sign in to comment.