File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed
compass-components/src/components Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,6 @@ type InteractivePopoverProps = {
6060 containedElements ?: string [ ] ;
6161 containerClassName ?: string ;
6262 closeButtonClassName ?: string ;
63- blurTriggerOnClose ?: boolean ;
6463} & Pick <
6564 React . ComponentProps < typeof Popover > ,
6665 'align' | 'justify' | 'spacing' | 'popoverZIndex'
@@ -81,7 +80,6 @@ function InteractivePopover({
8180 popoverZIndex,
8281 containerClassName,
8382 closeButtonClassName,
84- blurTriggerOnClose = false ,
8583} : InteractivePopoverProps ) : React . ReactElement {
8684 const darkMode = useDarkMode ( ) ;
8785 const triggerRef = useRef < HTMLButtonElement > ( null ) ;
@@ -93,13 +91,9 @@ function InteractivePopover({
9391
9492 // Return focus to the trigger when the popover is hidden.
9593 setTimeout ( ( ) => {
96- if ( blurTriggerOnClose ) {
97- triggerRef . current ?. blur ( ) ;
98- } else {
99- triggerRef . current ?. focus ( ) ;
100- }
94+ triggerRef . current ?. focus ( ) ;
10195 } ) ;
102- } , [ setOpen , blurTriggerOnClose ] ) ;
96+ } , [ setOpen ] ) ;
10397
10498 const onClickTrigger = useCallback (
10599 ( event ) => {
Original file line number Diff line number Diff line change @@ -71,7 +71,6 @@ export default function ConnectionsFilterPopover({
7171 < InteractivePopover
7272 open = { open }
7373 setOpen = { setOpen }
74- blurTriggerOnClose
7574 containerClassName = { containerStyles }
7675 hideCloseButton
7776 trigger = { ( { onClick, children, ref } ) => (
You can’t perform that action at this time.
0 commit comments