Update PanelContainerComponent.tsx

This commit is contained in:
MokireddySampath
2023-07-26 21:56:31 +05:30
committed by GitHub
parent 4766b69799
commit ec9d56e55f

View File

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