mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-24 19:31:36 +00:00
Compare commits
15 Commits
index-arch
...
2262594
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
311e517836 | ||
|
|
04092c9da5 | ||
|
|
7b82a8ff81 | ||
|
|
832964f1b9 | ||
|
|
1e5042c2ec | ||
|
|
bc9f617537 | ||
|
|
288dc675d4 | ||
|
|
c727d82cdd | ||
|
|
ec9d56e55f | ||
|
|
4766b69799 | ||
|
|
19cf52353c | ||
|
|
fd50580ff7 | ||
|
|
140313e5e3 | ||
|
|
8f228260a3 | ||
|
|
045d038a93 |
@@ -1,4 +1,5 @@
|
||||
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";
|
||||
@@ -77,6 +78,20 @@ export class PanelContainerComponent extends React.Component<PanelContainerProps
|
||||
}
|
||||
|
||||
private onDissmiss = (ev?: KeyboardEvent | React.SyntheticEvent<HTMLElement>): void => {
|
||||
const collection = useSelectedNode.getState().findSelectedCollection();
|
||||
if (collection) {
|
||||
const targetElementDataTest: string | undefined = collection.id();
|
||||
const targetElement: HTMLElement | null = document.querySelector(`[data-test="${targetElementDataTest}"]`);
|
||||
if (targetElement) {
|
||||
setTimeout(() => {
|
||||
const moreButton: HTMLElement | null = targetElement.querySelector('[name="More"]');
|
||||
if (moreButton) {
|
||||
moreButton.focus();
|
||||
}
|
||||
}, 100);
|
||||
clearTimeout;
|
||||
}
|
||||
}
|
||||
if (ev && (ev.target as HTMLElement).id === "notificationConsoleHeader") {
|
||||
ev.preventDefault();
|
||||
} else {
|
||||
|
||||
@@ -163,4 +163,4 @@
|
||||
"src/Terminal/**/*",
|
||||
"src/Utils/arm/**/*"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user