mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 04:49:35 +00:00
Register toggle since it's a disposable (#208249)
Saw this in our unit tests when I was playing with depending on Checkbox.
This commit is contained in:
parent
288be7d337
commit
78d4f34a94
|
@ -237,7 +237,7 @@ export class Checkbox extends Widget {
|
|||
constructor(private title: string, private isChecked: boolean, styles: ICheckboxStyles) {
|
||||
super();
|
||||
|
||||
this.checkbox = new Toggle({ title: this.title, isChecked: this.isChecked, icon: Codicon.check, actionClassName: 'monaco-checkbox', ...unthemedToggleStyles });
|
||||
this.checkbox = this._register(new Toggle({ title: this.title, isChecked: this.isChecked, icon: Codicon.check, actionClassName: 'monaco-checkbox', ...unthemedToggleStyles }));
|
||||
|
||||
this.domNode = this.checkbox.domNode;
|
||||
|
||||
|
|
Loading…
Reference in a new issue