Skip to content

Commit

Permalink
set timeout pair with cee and trevor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rshen91 committed May 9, 2024
1 parent b62e5a8 commit fda6c10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 3 additions & 1 deletion packages/shared-ux/modal/tabbed/src/tabbed_modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ const TabbedModalInner: FC<ITabbedModalInner> = ({
<EuiModal
onClose={() => {
onClose();
anchorElement?.focus();
setTimeout(() => {
anchorElement?.focus();
}, 1);
}}
style={{ ...(modalWidth ? { width: modalWidth } : {}) }}
maxWidth={true}
Expand Down
6 changes: 0 additions & 6 deletions src/plugins/share/public/services/share_menu_manager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,6 @@ export class ShareMenuManager {
};
}

// private onClose = () => {
// ReactDOM.unmountComponentAtNode(this.container);
// this.isOpen = false;
// };

private toggleShareContextMenu({
anchorElement,
allowEmbed,
Expand Down Expand Up @@ -98,7 +93,6 @@ export class ShareMenuManager {
}) {
if (this.isOpen) {
onClose();
anchorElement.focus();
return;
}

Expand Down

0 comments on commit fda6c10

Please sign in to comment.