Update PanelContainerComponent.tsx

This commit is contained in:
MokireddySampath
2023-08-17 22:34:02 +05:30
committed by GitHub
parent bc9f617537
commit 1e5042c2ec

View File

@@ -79,8 +79,7 @@ export class PanelContainerComponent extends React.Component<PanelContainerProps
private onDissmiss = (ev?: KeyboardEvent | React.SyntheticEvent<HTMLElement>): void => {
const collection = useSelectedNode.getState().findSelectedCollection();
const targetElementDataTest: string = collection.id();
const targetElement: HTMLElement | null = document.querySelector(`[data-test="${targetElementDataTest}"]`);
const targetElement: HTMLElement | null = document.querySelector(`[data-test="${collection.id()}"]`);
if (ev && (ev.target as HTMLElement).id === "notificationConsoleHeader") {
ev.preventDefault();
} else {