From fd50580ff7b112625ea7871618616a91dc87e681 Mon Sep 17 00:00:00 2001 From: MokireddySampath <120497218+MokireddySampath@users.noreply.github.com> Date: Wed, 26 Jul 2023 20:31:35 +0530 Subject: [PATCH] Update PanelContainerComponent.tsx --- src/Explorer/Panes/PanelContainerComponent.tsx | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/Explorer/Panes/PanelContainerComponent.tsx b/src/Explorer/Panes/PanelContainerComponent.tsx index 6d5de0af2..4ddc59033 100644 --- a/src/Explorer/Panes/PanelContainerComponent.tsx +++ b/src/Explorer/Panes/PanelContainerComponent.tsx @@ -1,5 +1,4 @@ import { IPanelProps, IRenderFunction, Panel, PanelType } from "@fluentui/react"; -import { useSelectedNode } from "Explorer/useSelectedNode"; import * as React from "react"; import { useNotificationConsole } from "../../hooks/useNotificationConsole"; import { useSidePanel } from "../../hooks/useSidePanel"; @@ -78,19 +77,11 @@ export class PanelContainerComponent extends React.Component): void => { - const targetElementDataTest: string | undefined = useSelectedNode.getState().findSelectedCollection().id(); - const targetElement: HTMLElement | null = document.querySelector(`[data-test="${targetElementDataTest}"]`); if (ev && (ev.target as HTMLElement).id === "notificationConsoleHeader") { ev.preventDefault(); } else { useSidePanel.getState().closeSidePanel(); } - if (targetElement) { - const moreButton: HTMLElement | null = targetElement.querySelector('[name="More"]'); - if (moreButton) { - moreButton.focus(); - } - } }; private getPanelHeight = (): string => {