Fix error telemetry, fixes #148439 (#159511)

* Fix error telemetry, fixes #148439

* Shorten the comment
This commit is contained in:
Raymond Zhao
2022-08-29 23:42:42 -07:00
committed by GitHub
parent e0aef14700
commit 2ffd80aa97
@@ -384,6 +384,12 @@ export abstract class AbstractListSettingWidget<TDataItem extends object> extend
this.listDisposables.add(disposableTimeout(() => rowElement.focus()));
}
this.listDisposables.add(DOM.addDisposableListener(rowElement, 'click', (e) => {
// There is a parent list widget, which is the one that holds the list of settings.
// Prevent the parent widget from trying to interpret this click event.
e.stopPropagation();
}));
return rowElement;
}