This commit is contained in:
Jackson Kearl
2021-06-03 13:45:21 -07:00
parent 0a5d652bdf
commit 5ea2604418
@@ -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);