mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-16 09:35:36 -05:00
Add null ref check for click handler (#9190)
This commit is contained in:
@@ -164,7 +164,7 @@ export default class DivContainer extends ContainerBase<azdata.DivItemLayout> im
|
||||
}
|
||||
if (this.clickable && !this.cancelClick) {
|
||||
this.cancelClick = this.renderer.listen(this.divContainer.nativeElement, 'click', () => this.onClick());
|
||||
} else if (!this.clickable) {
|
||||
} else if (!this.clickable && this.cancelClick) {
|
||||
this.cancelClick();
|
||||
this.cancelClick = undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user