Update PanelContainerComponent.tsx

This commit is contained in:
MokireddySampath 2023-08-17 22:34:02 +05:30 committed by GitHub
parent bc9f617537
commit 1e5042c2ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 {