mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
Fix #124531
This commit is contained in:
@@ -573,9 +573,11 @@ export class GettingStartedPage extends EditorPane {
|
||||
if (id) {
|
||||
const stepElement = assertIsDefined(this.container.querySelector<HTMLDivElement>(`[data-step-id="${id}"]`));
|
||||
stepElement.parentElement?.querySelectorAll<HTMLElement>('.expanded').forEach(node => {
|
||||
node.classList.remove('expanded');
|
||||
node.style.height = ``;
|
||||
node.setAttribute('aria-expanded', 'false');
|
||||
if (node.getAttribute('data-step-id') !== id) {
|
||||
node.classList.remove('expanded');
|
||||
node.style.height = ``;
|
||||
node.setAttribute('aria-expanded', 'false');
|
||||
}
|
||||
});
|
||||
setTimeout(() => (stepElement as HTMLElement).focus(), delayFocus ? SLIDE_TRANSITION_TIME_MS : 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user