Skip to content

Commit

Permalink
Fix tooltip appearing when opening popovers in Summary panel (#42381)
Browse files Browse the repository at this point in the history
  • Loading branch information
noisysocks authored Jul 13, 2022
1 parent c6f76f2 commit f01f981
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default function PostSchedule() {
popoverProps={ { anchorRef } }
position="bottom left"
contentClassName="edit-post-post-schedule__dialog"
focusOnMount
renderToggle={ ( { isOpen, onToggle } ) => (
<PostScheduleToggle
isOpen={ isOpen }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export default function PostTemplate() {
position="bottom left"
className="edit-post-post-template__dropdown"
contentClassName="edit-post-post-template__dialog"
focusOnMount
renderToggle={ ( { isOpen, onToggle } ) => (
<PostTemplateToggle
isOpen={ isOpen }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export default function PostURL() {
position="bottom left"
className="edit-post-post-url__dropdown"
contentClassName="edit-post-post-url__dialog"
focusOnMount
renderToggle={ ( { isOpen, onToggle } ) => (
<PostURLToggle isOpen={ isOpen } onClick={ onToggle } />
) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export function PostVisibility() {
// when the label changes.
anchorRef: rowRef.current,
} }
focusOnMount
renderToggle={ ( { isOpen, onToggle } ) => (
<PostVisibilityToggle
isOpen={ isOpen }
Expand Down

0 comments on commit f01f981

Please sign in to comment.