mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Swallow error on context view when disposing children (#1663)
* swallow error on context view when disposing children * fix edit comment
This commit is contained in:
@@ -397,8 +397,16 @@ export class SelectBoxList implements ISelectBoxDelegate, IDelegate<ISelectOptio
|
|||||||
container.appendChild(this.selectDropDownContainer);
|
container.appendChild(this.selectDropDownContainer);
|
||||||
|
|
||||||
this.layoutSelectDropDown();
|
this.layoutSelectDropDown();
|
||||||
|
|
||||||
|
// {{SQL CARBON EDIT}}
|
||||||
return {
|
return {
|
||||||
dispose: () => container.removeChild(this.selectDropDownContainer) // remove to take out the CSS rules we add
|
dispose: () => {
|
||||||
|
try {
|
||||||
|
container.removeChild(this.selectDropDownContainer); // remove to take out the CSS rules we add
|
||||||
|
} catch(e) {
|
||||||
|
// if this fails it means it is already removed
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user