Fix multiline disposables

This commit is contained in:
Rob Lourens 2021-07-21 18:36:48 -07:00
parent 2fbb01afae
commit 49cb8ce9a3

View file

@ -1453,7 +1453,7 @@ export class SettingMultilineTextRenderer extends AbstractSettingTextRenderer im
onChange(value);
};
super.renderValue(dataElement, template, onChangeOverride);
template.toDispose.add(
template.elementDisposables.add(
template.inputBox.onDidHeightChange(e => {
const height = template.containerElement.clientHeight;
// Don't fire event if height is reported as 0,