Fix #117284: Get started content becomes hidden on click

This commit is contained in:
Jackson Kearl 2021-02-22 19:16:59 -08:00
parent 6312db1e01
commit 4673316a39

View file

@ -225,12 +225,12 @@ export class GettingStartedPage extends EditorPane {
node.style.height = ``;
node.setAttribute('aria-expanded', 'false');
});
taskElement.style.height = `${taskElement.scrollHeight}px`;
setTimeout(() => (taskElement as HTMLElement).focus(), delayFocus ? SLIDE_TRANSITION_TIME_MS : 0);
if (this.editorInput.selectedTask === id && contractIfAlreadySelected) {
this.editorInput.selectedTask = undefined;
return;
}
taskElement.style.height = `${taskElement.scrollHeight}px`;
if (!this.currentCategory || this.currentCategory.content.type !== 'items') {
throw Error('cannot expand task for category of non items type' + this.currentCategory?.id);
}