Fixes #50616, Showing/hiding details in Issue Reporter resets scroll position

This commit is contained in:
Rachel Macfarlane
2018-05-29 13:00:14 -07:00
parent 7591053022
commit eec5c07f82

View File

@@ -325,6 +325,7 @@ export class IssueReporter extends Disposable {
for (let i = 0; i < showInfoElements.length; i++) {
const showInfo = showInfoElements.item(i);
showInfo.addEventListener('click', (e) => {
e.preventDefault();
const label = (<HTMLDivElement>e.target);
const containingElement = label.parentElement.parentElement;
const info = containingElement.lastElementChild;