mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-02-25 13:38:02 +00:00
Update PanelContainerComponent.tsx
This commit is contained in:
parent
04092c9da5
commit
311e517836
@ -78,16 +78,14 @@ export class PanelContainerComponent extends React.Component<PanelContainerProps
|
|||||||
}
|
}
|
||||||
|
|
||||||
private onDissmiss = (ev?: KeyboardEvent | React.SyntheticEvent<HTMLElement>): void => {
|
private onDissmiss = (ev?: KeyboardEvent | React.SyntheticEvent<HTMLElement>): void => {
|
||||||
let collection = useSelectedNode.getState().findSelectedCollection();
|
const collection = useSelectedNode.getState().findSelectedCollection();
|
||||||
if (collection) {
|
if (collection) {
|
||||||
console.log(collection);
|
|
||||||
const targetElementDataTest: string | undefined = collection.id();
|
const targetElementDataTest: string | undefined = collection.id();
|
||||||
const targetElement: HTMLElement | null = document.querySelector(`[data-test="${targetElementDataTest}"]`);
|
const targetElement: HTMLElement | null = document.querySelector(`[data-test="${targetElementDataTest}"]`);
|
||||||
if (targetElement) {
|
if (targetElement) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
const moreButton: HTMLElement | null = targetElement.querySelector('[name="More"]');
|
const moreButton: HTMLElement | null = targetElement.querySelector('[name="More"]');
|
||||||
if (moreButton) {
|
if (moreButton) {
|
||||||
console.log(targetElementDataTest, targetElement);
|
|
||||||
moreButton.focus();
|
moreButton.focus();
|
||||||
}
|
}
|
||||||
}, 100);
|
}, 100);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user